sort和uniq去重操作【转】

去除重复行
sort file |uniq

 
查找非重复行
sort file |uniq -u
 
查找重复行
sort file |uniq -d
 
统计
sort file | uniq -c
 
转自
http://www.study365.org/blog/3.html
原文地址:https://www.cnblogs.com/paul8339/p/9647114.html