Created
April 23, 2015 14:29
-
-
Save kamalbanga/6d26d80961c06bf36903 to your computer and use it in GitHub Desktop.
Doug Mcllroy's solution to "find n most frequent words in a file"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tr -cs A-Za-z '\n' | | |
tr A-Z a-z | | |
sort | | |
uniq -c | | |
sort -rn | | |
sed ${1}q |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment