#After pdfs and docs have been carved from filsystem, the folowing commands can be used to search for specific documents
##Search for PDF containing specific text:
find . -name '.pdf' -exec sh -c 'pdftotext -q "{}" - | grep --with-filename --label="{}" --color "Search Query"' ;
##Search for .doc or .DOC files containing specific text:
find -name '.doc' | while read -r file; do
catdoc "$file" | grep -H --label="$file" "Search Query"
done
Created
May 5, 2015 10:43
-
-
Save cloudcalvin/28faed30c007d5d5de1a to your computer and use it in GitHub Desktop.
File Recovery Commands
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment