去除重复行 $ sort file |uniq 查找非重复行 $ sort file |uniq -u 查找重复行 $ sort file |uniq -d 统计 $ sort file | uniq -c