kamalbanga
4/23/2015 - 2:29 PM

Doug Mcllroy's solution to "find n most frequent words in a file"

Doug Mcllroy's solution to "find n most frequent words in a file"

tr -cs A-Za-z '\n' |
tr A-Z a-z |
sort |
uniq -c |
sort -rn |
sed ${1}q