Prev: CUPS upgrade from Lenny to Squeeze breaks encryption - HELP
Next: reportbug nscd did not find bugs on bugs.debian.org
From: Andrei Popescu on 29 Jul 2010 01:50 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. Regards, Andrei -- Offtopic discussions among Debian users and developers: http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic
From: Andrei Popescu on 29 Jul 2010 02:10 On Jo, 29 iul 10, 08:41:57, 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. grep----------^^^ Andrei -- Offtopic discussions among Debian users and developers: http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic
From: Andrei Popescu on 29 Jul 2010 06:00 On Jo, 29 iul 10, 09:50:32, Tzafrir Cohen wrote: > > If you stop it with ctrl-C, both find and grep get interrupted and stop, > right? Actually I don't know how shell pipes work here. Is the output of find piped to grep only when find finishes or as soon as there is some output? Regards, Andrei -- Offtopic discussions among Debian users and developers: http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic
From: Tzafrir Cohen on 29 Jul 2010 06:00 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(a)jabber.org | VIM is http://tzafrir.org.il | | a Mutt's tzafrir(a)cohens.org.il | | best tzafrir(a)debian.org | | friend -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org Archive: http://lists.debian.org/20100729095032.GV17569(a)pear.tzafrir.org.il
From: Andrei Popescu on 29 Jul 2010 06:40
On Jo, 29 iul 10, 05:08:27, Jordon Bedwell wrote: [snip] Thanks, learned some new stuff. Regards, Andrei -- Offtopic discussions among Debian users and developers: http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic |