Neil Bothwick wrote:
> On Fri, 20 Jan 2006 09:09:01 -0600, Anthony E. Caudel wrote:
> 
> 
>>find <directory> -name '*' -exec fgrep -l <search phrase> \{\} \;
>>
>>This search all files for the search phrase.
> 
> 
> Using find with a separate call to grep for each seems a slow way to do
> things. What's wrong with fgrep -r ?
> 
> fgrep -lr 'search phrase' directory
> 
> 
As it turns out, nothing!  I was aware of fgrep but had never checked it
out.  Is simpler and, it seems, a little faster than the find invocation.

Thanks Neil, time to modify my tips file.

Tony

-- 
Those who would give up essential Liberty, to purchase a little temporary
Safety, deserve neither Liberty nor Safety.
   -- Benjamin Franklin
-- 
gentoo-user@gentoo.org mailing list

Reply via email to