Created
December 14, 2021 22:52
-
-
Save infojunkie/1939ee4761f281921ea101fac888f748 to your computer and use it in GitHub Desktop.
Count words in a list of PDF files
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
#!/bin/bash | |
find "$@" -name '*.pdf' | while read f; do pdftotext "$f" - | wc -w; done | paste -sd+ | bc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment