Created
October 5, 2013 21:08
-
-
Save fakenickels/6846039 to your computer and use it in GitHub Desktop.
A simple shell script that shows and enumerates the most frequently words used in a file
This file contains hidden or 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
# Show and enumerate the most frequently words in a file | |
# Use: | |
# $ chmod a+x frequently_words.sh | |
# $ ./frequently_words file_path | |
cat $1 | tr -cs A-Za-z '\n' | tr A-Z a-z | sort | uniq -c | sort -rn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment