将来的你会感谢现在努力的自己,骚年,趁年轻多努力学习 ------ Jasper_boy

linux shell脚本查找重复行/查找非重复行/去除重复行/重复行统计

去除重复行 
sort file |uniq

查找非重复行 
sort file |uniq -u

查找重复行 
sort file |uniq -d

统计 
sort file | uniq -c

 

 
posted @ 2018-12-21 16:45  Jasper_boy  阅读(540)  评论(0编辑  收藏  举报