Skip to content

Instantly share code, notes, and snippets.

@mkemp
Created May 11, 2015 14:57
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 mkemp/b6b07f983d1c86d79344 to your computer and use it in GitHub Desktop.
Save mkemp/b6b07f983d1c86d79344 to your computer and use it in GitHub Desktop.
Used in CloudCamp Chicago 2015.05.11 presentation.
#!/bin/bash
text=$(cat ${1} | tr '[:punct:]' ' ' | tr '[:upper:]' '[:lower:]')
parsed=(${text})
for w in ${parsed[@]}; do echo ${w}; done | sort | uniq -c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment