Created
October 14, 2018 13:58
-
-
Save andreadellacorte/8cf8c33d4497a5661c145a31f4338c61 to your computer and use it in GitHub Desktop.
Count frequency of words in a text
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
cat text.txt | tr '[:space:]' '[\n*]' | tr -cd "[:alnum:]\n"| tr "[:lower:]" "[:upper:]" | grep -v "^\s*$" | sort | uniq -c | sort -bnr > text.fqr |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment