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

去除重复行

sort file |uniq
 
查找非重复行
sort file |uniq -u
 
查找重复行
sort file |uniq -d
 
统计
sort file | uniq -c
原文地址:https://www.cnblogs.com/timssd/p/5867368.html