Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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
You can’t perform that action at this time.