sort和uniq去重操作【转】

去除重复行
sort file |uniq

 
查找非重复行
sort file |uniq -u
 
查找重复行
sort file |uniq -d
 
统计
sort file | uniq -c
 
转自
http://www.study365.org/blog/3.html
posted @ 2018-09-14 15:56  paul_hch  阅读(176)  评论(0编辑  收藏  举报