默认是按升序排列,如果想要按降序要加-r选项(sort -rn) sort test.txt | uniq -c sort test.txt | uniq -c | sort -rn | cut -c 9-