bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: grep patch


From: Andreas Schwab
Subject: Re: grep patch
Date: Fri, 18 Jan 2002 18:07:54 +0100
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1.30 (ia64-suse-linux)

address@hidden (Stepan Koltsov) writes:

|> 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

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE GmbH, Deutschherrnstr. 15-19, D-90429 N├╝rnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]