[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: grep patch
From: |
Stepan Koltsov |
Subject: |
Re: grep patch |
Date: |
Sat, 19 Jan 2002 08:13:04 +0300 |
User-agent: |
Mutt/1.3.25i |
On Fri, Jan 18, 2002 at 06:07:54PM +0100, Andreas Schwab wrote:
> |> Maybe more proper way is to modify grep, allowing it to take filelist
> |> from file, including stdin? Then we can do something like:
> |>
> |> find . -name '*.h' | grep --filelist=- pattern
> |> or even
> |> find . -name '*.h' -print0 | grep --filelist0=- pattern
>
> This is shorter to type :-)
>
> find . -name '*.h' | xargs grep -H pattern
>
> find . -name '*.h' -print0 | xargs -0 grep -H pattern
Your variant requires 1 fork-exec per file, it works slower.
--
mailto:address@hidden
irc.openprojects.net/#debian-russian
- Re: grep patch, (continued)
- Re: grep patch, Paul Eggert, 2002/01/17
- Re: grep patch, Stepan Koltsov, 2002/01/17
- Re: grep patch, Paul Eggert, 2002/01/17
- Re: grep patch, Miles Bader, 2002/01/17
- Re: grep patch, Paul Eggert, 2002/01/18
- Re: grep patch, Miles Bader, 2002/01/18
- Re: grep patch, Stepan Koltsov, 2002/01/18
- Re: grep patch, Alain Magloire, 2002/01/18
- Message not available
- Re: grep patch, Stepan Koltsov, 2002/01/18
- Re: grep patch, Andreas Schwab, 2002/01/18
- Re: grep patch,
Stepan Koltsov <=
- Re: grep patch, Miles Bader, 2002/01/19
- Re: grep patch, Stepan Koltsov, 2002/01/19
- Re: grep patch, Kris Warkentin, 2002/01/18
- Re: grep patch, Alain Magloire, 2002/01/17
Re: grep patch, Bernhard Rosenkraenzer, 2002/01/18
Re: grep patch, Paul Eggert, 2002/01/18