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

Re: find+grep [was: Re: Amaya W3C Web browser and sid]



On Thu, Jul 29, 2010 at 08:41:57AM +0300, Andrei Popescu wrote:
> On Mi, 28 iul 10, 16:10:38, Jordon Bedwell wrote:
> > On 7/28/10 4:03 PM, Jordan Metzmeier wrote:
> > >On 07/28/2010 04:11 PM, Jordon Bedwell wrote:
> > >>
> > >>find / |grep libraptor
> > >
> > >Perhaps you wanted find's -name option? find / -name 'libraptor*'
> > 
> > I personally prefer to grep over find, but to each their own :P as
> > each have their own methods to do things that ultimately lead to the
> > same solution.
> 
> Assuming very long output of find, grepping over it is not efficient. 
> Besides, the file you search might be quite early found and one can 
> interrupt the search, while with your approach one has to wait until 
> both find and finish.

If you stop it with ctrl-C, both find and grep get interrupted and stop,
right?

-- 
Tzafrir Cohen         | tzafrir@jabber.org | VIM is
http://tzafrir.org.il |                    | a Mutt's
tzafrir@cohens.org.il |                    |  best
tzafrir@debian.org    |                    | friend


Reply to: