阅读背景:

删除xml文件中没有sort或unique的重复连续行

来源:互联网 

I have an xml file where I need to keep the order of the tags but have a tag called media that has duplicate lines in consecutive order. I would like to delete one of the duplicate media tags but want to preserve all of the parent tags - (which are also consecutive and repeat). I'm wondering if there is an awk solution to delete only if a pattern is matched. For example:I have an xml file where I need to keep the ord




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: