Last active
May 24, 2016 10:26
-
-
Save davegurnell/34ca7b6918a33c4dbdef4e21ef8565db to your computer and use it in GitHub Desktop.
Handy grep wrappers
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
| #!/usr/bin/env bash | |
| find . \( -name \*.jsx\? -or -name \*.coffee -or -name \*.css -or -name \*.less -or -name \*.shtml\? -or -name \*.html\? -or -name \*.php -or -name \*.asp \) -not -path \*.git\* -not -path \*.svn\* -not -path \*compiled\* -not -path \*target\* -exec egrep -H "$1" {} \; |
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
| #!/usr/bin/env bash | |
| find . \( -name \*.scala -or -name \*.sbt \) -not -path \*.git\* -not -path \*.svn\* -not -path \*target\* -exec egrep -H "$1" {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment