awk除去重复行

awk去除重复行,思路是以每一行的$0为key,创建一个hash数组,后续碰到的行,如果数组里已经有了,就不再print了,否则将其print

 

0 0

Leave a Reply

Your email address will not be published. Required fields are marked *