"Why not just run `grep -r --exclude=".svn" event *` ?"
Because it doesn't work, at least not with gnu grep. Try it and see. (Hint: --exclude doesn't do anything with directories...only the files themselves, and .svn is the containing directory. So, using exclude for this purpose merely wastes your time and annoys the pig.)
Re:Grin: A smarter way to grep code
by nuclear_eclipse on Tuesday September 02, 2008 @07:12PM
(#293348)
I guess that's what I get for assuming --exclude works the same between grep and diff...
Either way, I still use `ack` for searching source code, and grep otherwise...