29 March 2013

Question: Mac grep to exclude directories

I'm tired of searching for this exclude directories apparently running grep -ir --exclude-dir=.svn  'needle' . on Mac OS X snow leopard . The --exclude-dir for grep does not work on Mac. Also I don't want to run any piped greps like  "grep -nHR 'needle' . | grep -v svn" as I'm searching in a 30GB source code as it consumes too many hours.

No comments:

Google