Skip to content

Instantly share code, notes, and snippets.

@cloudcalvin
Created May 5, 2015 10:43
Show Gist options
  • Select an option

  • Save cloudcalvin/28faed30c007d5d5de1a to your computer and use it in GitHub Desktop.

Select an option

Save cloudcalvin/28faed30c007d5d5de1a to your computer and use it in GitHub Desktop.
File Recovery Commands

#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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment