[96457] in RedHat Linux List
Re: Newbie: Searching sub directories for text
daemon@ATHENA.MIT.EDU (Anthony E. Greene)
Tue Oct 27 07:15:02 1998
Date: Tue, 27 Oct 1998 13:13:43 +0100
To: redhat-list@redhat.com
From: "Anthony E. Greene" <agreene@pobox.com>
In-Reply-To: <01be01a2$5f56b400$cb01000a@tomtom2.asi-fwb.com>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
At 06:07 1998-10-27 -0600, Tom Browder wrote:
>Dave, try this:
>
> find . -name "<reg expression for file name>" -exec grep "<reg
expression to find>" {} \;
>
It seems to me that just using rgrep (as mentioned in another post) would
be simpler and faster than running find and executing grep each time a
mathcing file is found.
Tony
--
Anthony E. Greene <agreene@pobox.com>
Homepage and PGP Key: <http://www.pobox.com/~agreene/>
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com http://archive.redhat.com
To unsubscribe: mail redhat-list-request@redhat.com with
"unsubscribe" as the Subject.