Exclude directories from recursive grep

November 16th, 2008 by Julien Palard

How often are you using grep in subversionned folders like that :

grep -rni foobar . | grep -v .svn

Upgrade to grep 2.5.3 and use (alias it ?)

grep -rni --exclude-dir .svn foobar .

(or … stop using SVN ! ! !)

Leave a Reply

You must be logged in to post a comment.