我有我出口链接格式如下转换文本文件到XML文件(标题&& URL)
Cover-ups http://example.com/1
One-pieces http://example.com/2
Sarongs http://example.com/3
如何使用一个awk
命令或类似的东西,像这样以格式化的文本文件
<link>
<title>Cover-ups</title>
<url>http://example.com/1</url>
</link>
<link>
<title>One-pieces</title>
<url>http://example.com/2</url>
</link>
<link>
<title>Sarongs</title>
<url>http://example.com/3</url>
</link>
我最终得到我自己的解决方案感谢您链接的文档非常感谢。请重新编辑它,如果你有机会 – NooBskie
@gotnull,将FS更改为|并使用默认的FS分手手段不是很明确... ... - – JJoao