Skip to content

Instantly share code, notes, and snippets.

@dyerrington
Created March 24, 2015 18:56
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 dyerrington/5004ace7ca56871de9ea to your computer and use it in GitHub Desktop.
Save dyerrington/5004ace7ca56871de9ea to your computer and use it in GitHub Desktop.
This snippet does a quick count of words of all text files found in subdirectories from where it's run.
find . -name "*.txt" -exec cat {} \; | tr " " "\n" | wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment