Exclude directories from recursive grep
Posted on Tue 04 April 2017 in blog
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 !!!)