Created
February 9, 2018 10:24
-
-
Save rriemann/a6ccc8bb95b53b87194068bad9670d65 to your computer and use it in GitHub Desktop.
Static Text Analysis: Word Frequency
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
# https://unix.stackexchange.com/a/41480/148389 | |
# https://unix.stackexchange.com/a/171604/148389 | |
# here, the file to analyise is parts.md | |
cat parts.md | tr -c '[:alnum:]' '[\n*]' | tr '[:upper:]' '[:lower:]' | fgrep -v -w -f /usr/share/groff/1.22.3/eign | sort | uniq -c | sort -nr | head -20 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment