linux学习之uniq

uniq最经常用的是统计次数,通常先排序,然后uniq  -c

cat a.txt |sort -nr  |uniq  -c
原文地址:https://www.cnblogs.com/students/p/10345543.html