Chinaunix
标题:
shell读取XML文件
[打印本页]
作者:
kindyhb
时间:
2011-05-11 22:56
标题:
shell读取XML文件
现有test.xml文件如下:
cat test.xml
<article>
<title1>a1</titlel1>
<title2>a2</titlel2>
<title3>a3</titlel3>
</article>
<article>
<title1>b1</titlel1>
<title2>b2</titlel2>
<title3>b3</titlel3>
</article>
<article>
<title1>c1</titlel1>
<title2>c2</titlel2>
<title3>c3</titlel3>
</article>
希望处理后的结果>>test.unl
more test.unl
a1|a2|a3
b1|b2|b3
c1|c2|c3
在此谢谢您的技术支持!
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2