我在一个xml文件上做一个curl。 像输出:解析输出如id:name/class:id to id:class:name with bash awk
name
uuid3 - name
uuid1 - name
uuid2 - name
class
class - uuid3
class - uuid2
class - uuid1
我需要理清这种模式,如:
uuid1 - class - name
uuid2 - class - name
uuid3 - class - name
我认为做的东西,最好的办法是awk
,但所有的解决方案都不错。
非常感谢。
中提供很多信息您是否有任何代码? – Nunchy
你说得对,awk是这样做的最好方法。阅读由Arnold Robbins撰写的第4版Effective Awk Programming一书。 –