Skip to content

Instantly share code, notes, and snippets.

@mslinn
Last active October 9, 2015 09:48
Show Gist options
  • Save mslinn/3483820 to your computer and use it in GitHub Desktop.
Save mslinn/3483820 to your computer and use it in GitHub Desktop.
Word concordance of a directory tree
find . -type f -print0 | xargs -0 cat | sed 's/[[:punct:]|{|}]/ /g' | sed -r 's/\s+/\n/g' | sed 's/[[:digit:]]*//' |sort | uniq -c | sort -n | less
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment