TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [TCLUG:21649] Limits of grep?
On Tue, Sep 26, 2000 at 09:30:36AM -0500, dopp@acm.cs.umn.edu wrote:
> I think it would just be
>
> find . -type f | xargs grep pattern
If you're using find, is there ant advantage to using xargs instead of find
handling the filenames itself?
find . -type f -exec grep pattern {} \;
(Well, OK... I guess my version is a few more keystrokes...)
--
"Two words: Windows survives." - Craig Mundie, Microsoft senior strategist
"So does syphillis. Good thing we have penicillin." - Matthew Alton
Geek Code 3.1: GCS d- s+: a- C++ UL++$ P+>+++ L+++>++++ E- W--(++) N+ o+
!K w---$ O M- V? PS+ PE Y+ PGP t 5++ X+ R++ tv b+ DI++++ D G e* h+ r++ y+