Skip to content

Instantly share code, notes, and snippets.

@davegurnell
Last active May 24, 2016 10:26
Show Gist options
  • Select an option

  • Save davegurnell/34ca7b6918a33c4dbdef4e21ef8565db to your computer and use it in GitHub Desktop.

Select an option

Save davegurnell/34ca7b6918a33c4dbdef4e21ef8565db to your computer and use it in GitHub Desktop.
Handy grep wrappers
#!/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" {} \;
#!/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