This revision is from 2012/01/22 14:02. You can Restore it.
Usage(Edit)
This shell script is a handy way to spiff up "grep -r" a bit. It ignores the .svn/ and locale/ dirs, plus it will automatically append "." as the directory to search. Nothing much, but a handy one to put in ~/bin/gr
Code(Edit)
#!/bin/sh NEEDLE="$1" HAYSTACK="$2" [ "$HAYSTACK" == "" ] && HAYSTACK=. grep --exclude-dir=locale --exclude-dir=.svn -r "$NEEDLE" "$HAYSTACK"