Created
July 10, 2013 11:06
-
-
Save chardcastle/5965420 to your computer and use it in GitHub Desktop.
Search in files on mac terminal
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
// Find foo in javascript files within a folder called www | |
grep 'foo' -rl --include=\*.{js,h} www/ | |
// Find bar in php files within a folder called www | |
grep 'bar' -rl --include=\*.{php,h} www/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment