Debian Bug report logs -
#283094
Option to ignore certain directories (e.g., .svn) while recursing
Reported by: Anthony DeRobertis <asd@suespammers.org>
Date: Fri, 26 Nov 2004 12:18:06 UTC
Severity: wishlist
Found in version 2.5.1.ds1-3.2
Fixed in version grep/2.5.3~dfsg-1
Done: Reuben Thomas <rrt@sc3d.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded to debian-bugs-dist@lists.debian.org, rmgolbeck@debian.org (Ryan M. Golbeck):
Bug#283094; Package grep.
(full text, mbox, link).
Acknowledgement sent to Anthony DeRobertis <asd@suespammers.org>:
New Bug report received and forwarded. Copy sent to rmgolbeck@debian.org (Ryan M. Golbeck).
(full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: grep
Version: 2.5.1.ds1-3.2
Severity: wishlist
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Due to subversion storing multiple copies of files, grep -r normally
picks out a bunch of files in .svn directories. It'd be nice if there
were a way to have grep skip directories named .svn (or anything else,
for that matter).
- -- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (500, 'testing'), (130, 'unstable'), (120, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-bohr
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8
Versions of packages grep depends on:
ii libc6 2.3.2.ds1-18 GNU C Library: Shared libraries an
- -- no debconf information
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFBpx2o+z+IwlXqWf4RArNOAJ9RbDfiPWgdT1LcHiZVWTpzaJRXFwCZAaKe
LTqKcTfXx+uO8iYqnzJ4fHk=
=tPLn
-----END PGP SIGNATURE-----
Information forwarded to debian-bugs-dist@lists.debian.org, rmgolbeck@debian.org (Ryan M. Golbeck):
Bug#283094; Package grep.
(full text, mbox, link).
Acknowledgement sent to Anthony DeRobertis <anthony@derobert.net>:
Extra info received and forwarded to list. Copy sent to rmgolbeck@debian.org (Ryan M. Golbeck).
(full text, mbox, link).
Message #10 received at 283094@bugs.debian.org (full text, mbox, reply):
FYI, I've seen --exclude in the grep manpage, but it doesn't seem to be
able to ignore directories named .svn. I tried:
Things which don't seem to exclude anything:
grep -r --exclude '/.svn/' string .
grep -r --exclude '/.svn' string .
grep -r --exclude '.svn' string .
grep -r --exclude '*/.svn/*' string .
grep -r --exclude '*\/\.svn\/*' string .
And these did exclude something, but excluded too much:
grep -r --exclude '*.svn*' string . # excluded .svnfoo
But even that didn't manage to exclude the subversion directories; it
appears exlcude only works on file names, not directories....
Other than:
find . -path '*/.svn/*' -prune -or -type f -print0 | \
xargs -0 grep string
there does not seem to be a way to do a recursive grep that excludes
.svn directories.
Message sent on
to Anthony DeRobertis <asd@suespammers.org>:
Bug#283094.
(Wed, 12 Nov 2008 23:09:11 GMT) (full text, mbox, link).
Message #13 received at 283094-submitter@bugs.debian.org (full text, mbox, reply):
Hi Anthony,
#283094 - Option to ignore certain directories (e.g., .svn) while recursing
http://bugs.debian.org./283094
Why not just use find . ! -name '.svn' -print0 |xargs grep -r0 ...
See also #177180.
Reply sent
to Reuben Thomas <rrt@sc3d.org>:
You have taken responsibility.
(Fri, 08 May 2009 12:30:06 GMT) (full text, mbox, link).
Notification sent
to Anthony DeRobertis <asd@suespammers.org>:
Bug acknowledged by developer.
(Fri, 08 May 2009 12:30:06 GMT) (full text, mbox, link).
Message #18 received at 283094-done@bugs.debian.org (full text, mbox, reply):
Package: grep
Version: 2.5.3-1
--exclude-dir was added to grep 2.5.3.
Marked as fixed in versions grep/2.5.3~dfsg-1.
Request was from Andreas Beckmann <anbe@debian.org>
to control@bugs.debian.org.
(Fri, 01 Nov 2013 01:21:23 GMT) (full text, mbox, link).
No longer marked as fixed in versions grep/2.5.3-1.
Request was from Andreas Beckmann <anbe@debian.org>
to control@bugs.debian.org.
(Fri, 01 Nov 2013 01:21:23 GMT) (full text, mbox, link).
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Fri, 29 Nov 2013 07:49:53 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Wed Oct 11 00:25:38 2017;
Machine Name:
beach
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.