Skip to content

Instantly share code, notes, and snippets.

@galaakk
Created July 13, 2013 21:22
Show Gist options
  • Save galaakk/5992269 to your computer and use it in GitHub Desktop.
Save galaakk/5992269 to your computer and use it in GitHub Desktop.
Find occurences of a word in files sorted by order
sed 's/ /\'$'\n/g' FILENAME | sort | uniq -c | sort -nr | more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment