Skip to content

Instantly share code, notes, and snippets.

@bentappin
Created February 12, 2012 22:05
Show Gist options
  • Save bentappin/1811085 to your computer and use it in GitHub Desktop.
Save bentappin/1811085 to your computer and use it in GitHub Desktop.
Grep without storing search terms (e.g. password)
# Using -f- for grep lets you type in a search on STDIN for stuff
# like passwords without saving in history or ps
grep -r -f- sourcecode/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment