Re:Grin: A smarter way to grep code
by SwellJoe on Tuesday September 02, 2008 @04:26PM
(#293153)
"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.)
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.)