Exclude directories from recursive grep
Posté le mar. 04 avril 2017 dans 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 !!!)