Exclude directory from grep, e.g. .git, .svn
Using GNU grep:
grep --exclude-dir=".git"
Written by Marc Hibbins
Related protips
3 Responses
I tend to use ack. It's a great tool - definitely worth a look.
over 1 year ago
·
Seconding ack - it does things like this that you'd just want without having to be told about it. Ack is far nicer to use than grep, IMO.
over 1 year ago
·
git grep solves the specific problem rather well
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#