|
Title: Exclude directories from recursive grep
|
|
|
|
How often are you using grep in subversionned folders like that:
|
|
|
|
:::bash
|
|
grep -rni foobar . | grep -v .svn
|
|
|
|
Upgrade to grep 2.5.3 and use (alias it ?)
|
|
|
|
:::bash
|
|
grep -rni --exclude-dir .svn foobar .
|
|
|
|
(or ... stop using SVN !!!)
|