Skip to content

Instantly share code, notes, and snippets.

@jappy
Created March 10, 2012 18:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jappy/2012442 to your computer and use it in GitHub Desktop.
Save jappy/2012442 to your computer and use it in GitHub Desktop.
unix command to extract unique words by frequency normalized by case from a file (Mac/Linux)
tr 'A-Z' 'a-z' < filename.txt | tr -sc 'a-z' '\n' | sort | uniq -c | sort -n -r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment