how about doing the egrep in the find?

will that speed it up, maybe

find . -type f -exec egrep "text to find" {} \;

-----Original Message-----
From: Jeff 'japhy' Pinyan [mailto:japhy@;perlmonk.org]
Sent: 25 October 2002 01:50
To: Deb
Cc: [EMAIL PROTECTED]
Subject: Re: a speedy find & grep?


On Oct 24, Deb said:

> From the command-line, I'm currently running a find command piped to
>xargs grep:
>
> find . -f print | xargs egrep "some string to look for"

Why not use the -r option to e?grep to do recursive searches?

  egrep -r pattern .

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **
<stu> what does y/// stand for?  <tenderpuss> why, yansliterate of course.
[  I'm looking for programming work.  If you like my work, let me know.  ]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


------------------------------------------------------------
The information contained in or attached to this email is
intended only for the use of the individual or entity to
which it is addressed. If you are not the intended
recipient, or a person responsible for delivering it to the
intended recipient, you are not authorised to and must not
disclose, copy, distribute, or retain this message or any
part of it. It may contain information which is confidential
and/or covered by legal professional or other privilege (or
other rules or laws with similar effect in jurisdictions
outside England and Wales).

The views expressed in this email are not necessarily the
views of Centrica plc, and the company, its directors,
officers or employees make no representation or accept any
liability for its accuracy or completeness unless expressly
stated to the contrary.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to