[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: please allow a list of files to grep, as a file that can be - for st
From: |
t takahashi |
Subject: |
Re: please allow a list of files to grep, as a file that can be - for stdin (fixes other bugs) |
Date: |
Sat, 10 Jun 2006 19:01:03 -0700 |
On 6/10/06, Benno Schulenberg <address@hidden> wrote:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=368924
thanks for posting the links.
my major point is that you have maximum flexibility when you can use
find, a tool designed for exactly this purpose, to recurse and filter
the fs tree, and grep to do what it is good at, which is, to use a
correct but ironic term, grepping.
xargs is insufficient partly because it cannot efficiently call shell
functions. this is important for a variety of reasons including being
able to preprocess files. preprocessing can include uncompressing,
unarchiving, and so on. shell functions are useful for that.
imho, if there is a need for grep -r, then there is a need for pathname input.
(-xdev)
That would indeed be cool. Have a patch? :)
find already has. adding piped pathnames leverages that.
In my opinion, though, --exclude should not exclude directories.
imho, allowing piped input reduces the need for debates on whether it
should or not.
> find ... -xdev |
> grep -v .svn/ |
> grep -r --files-input - apple
What's the -r doing in there?
did i put that there? oops.
--
Webmaster: do you believe that people will (a) switch browsers to view
your "best viewed with" page or (b) go to your competitor?
- please allow a list of files to grep, as a file that can be - for stdin (fixes other bugs), Santiago José Ruano Rincón, 2006/06/10
- Re: please allow a list of files to grep, as a file that can be - for stdin (fixes other bugs), Benno Schulenberg, 2006/06/10
- Re: please allow a list of files to grep, as a file that can be - for stdin (fixes other bugs),
t takahashi <=
- Re: please allow a list of files to grep, as a file that can be - for stdin (fixes other bugs), t takahashi, 2006/06/11
- Re: please allow a list of files to grep, as a file that can be - for stdin (fixes other bugs), Benno Schulenberg, 2006/06/11
- Re: please allow a list of files to grep, as a file that can be - for stdin (fixes other bugs), t takahashi, 2006/06/11
- Re: please allow a list of files to grep, as a file that can be - for stdin (fixes other bugs), Benno Schulenberg, 2006/06/12