uniq最经常用的是统计次数,通常先排序,然后uniq -c
cat a.txt |sort -nr |uniq -c
linux学习之uniq
原文:https://www.cnblogs.com/students/p/10345543.html