Created
February 4, 2015 16:24
-
-
Save er4z0r/07e6f5b41de55647593c to your computer and use it in GitHub Desktop.
Sum of PDF-Pages on OS X
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 '*.pdf' -exec mdls {} \; | grep kMDItemNumberOfPages | awk -F'=' '{sum+=$2}END{print sum}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment