Exclude .svn subdirectories in your grep search

Just a little reminder for myself: In 93 of 95 cases i want to exclude all of the .svn subdirectories lying around in my working copy.
Andreas brought that one to my mind again with a nasty forest of grep pipes. ;-)

 grep -R --exclude \*.svn\* your_pattern

gives me only the output I really need.

Update (2:42pm):

Gosh. After @denderello got nudged about my last blog post I gave http://betterthangrep.com/ a try.
It came via macports and I'm already loving it's colorful output and the per-file groups. Neato.

Loading mentions Retweet

Comments (3)

Nov 24, 2009
kbsali said...
Have you ever tried "ack-grep" (http://betterthangrep.com/) ?
Nov 24, 2009
Bascht said...
nope, not yet - though I am tempted to give tools with fancy domain names a try. ;-)
Nov 24, 2009
Bascht said...
UPDATE: It's awesome.

Leave a comment...

 
Got an account with one of these? Login here, or just enter your comment below.
Posterous-login    twitter


 

About