Skip to content

Instantly share code, notes, and snippets.

@pretentiousgit
Created April 23, 2018 11:36
Show Gist options
  • Save pretentiousgit/99a2d1d308de6cf47b5aa5249f23fcb0 to your computer and use it in GitHub Desktop.
Save pretentiousgit/99a2d1d308de6cf47b5aa5249f23fcb0 to your computer and use it in GitHub Desktop.
grep help
HOW 2 GREP SOMETHING
find /etc /home /var /tmp -type f -exec grep -q 'helloiamstring' '{}' ';' -print
find / -not -path '/tmp/*' …rest of predicates…
find / -type f -exec grep 'helloiamstring' '{}' '+'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment