On Fri, 7 Mar 2008 13:30:37 +0000, Nick Treleaven nick.treleaven@btinternet.com wrote:
On Wed, 5 Mar 2008 16:35:37 -0600 "Jeff Pohlmeyer" yetanothergeek@gmail.com wrote:
Nick Treleaven nick.treleaven@btinternet.com wrote:
Jeff Pohlmeyer yetanothergeek@gmail.com wrote:
Shouldn't that be --exclude-dir=.svn ?
Yes, but AFAICT the stable version of Grep doesn't support this yet (development version does).
From what I can see, The stable version is 2.5.3 and this option has been available since 2.5.2 ( The ChangeLog says it was added 2006-08-19 )
From: http://www.gnu.org/software/grep/devel.html "The latest stable release of GNU grep is "2.5.1a"."
But maybe this page is out of date?
But you're right, it probably still isn't available to everyone.
I did a quick RPM search: http://rpmfind.net/linux/rpm2html/search.php?query=grep
It seems only Mandriva devel, OpenPKG and OpenSuSE (not SuSE) have 2.5.2 or later (although rpmfind isn't the best way of checking this ;-)).
Hmm, whatever grep version the user is using, why don't we just change the note in the manual to mention both methods equally. So users with a grep supporting --exclude-dir and those without will find the suitable information(in addition to the grep manpage they have probably installed).
Regards, Enrico