Created
March 24, 2015 18:56
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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