Created
April 23, 2018 11:36
-
-
Save pretentiousgit/99a2d1d308de6cf47b5aa5249f23fcb0 to your computer and use it in GitHub Desktop.
grep help
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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