Skip to content

Instantly share code, notes, and snippets.

@srijanshetty
Last active August 29, 2015 14:03
Show Gist options
  • Save srijanshetty/0e544047cfdd9585f974 to your computer and use it in GitHub Desktop.
Save srijanshetty/0e544047cfdd9585f974 to your computer and use it in GitHub Desktop.
Recover Files only using grep
grep --binary-files=text --context=x 'stringfromyourfile' \
/dev/whateverPartition > someFile.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment