Skip to content

Instantly share code, notes, and snippets.

@brendandahl
Created August 15, 2013 17:25
Show Gist options
  • Save brendandahl/6242756 to your computer and use it in GitHub Desktop.
Save brendandahl/6242756 to your computer and use it in GitHub Desktop.
Grep uncompressed PDF contents using pdftk.
find . -name "*.pdf" -exec sh -c "pdftk {} output - uncompress | grep -l 'searchString' --quiet && echo {}" \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment