统计某列出现次数 Counting occurrences in first column of a file

http://superuser.com/questions/521891/counting-occurrences-in-first-column-of-a-file


awk '{h[$1]++} END { for(k in h) print k, h[k] }' | sort -n

你可能感兴趣的:(经验,linux)