默認(rèn)是按升序排列,如果想要按降序要加-r選項(xiàng)(sort -rn) sort test.txt | uniq -c sort test.txt | uniq -c | sort -rn | cut -c 9-