shell去除重复行

去除重复行

sort file.txt |uniq

查找非重复行

sort file.txt |uniq -u

查找重复行

sort file.txt |uniq -d

统计

sort file.txt| uniq -c