Showstoppers, was: Re: Fwd: Re: Release Mode
Hans Meine
hans_meine at gmx.net
Wed Nov 28 11:44:19 GMT 2007
Am Mittwoch, 28. November 2007 09:15:56 schrieb Hiếu Hoàng:
> On Nov 28, 2007 7:09 AM, Michael Pyne <michael.pyne at kdemail.net> wrote:
> > That is a cool trick. I looked at the man page and there's a way to
> > refine it:
> >
> > $ find . -wholename '*/.svn' -prune -o -exec grep "\"edit\"" -l {} \;
> >
> > The -prune command drops the directory entirely from the search. find
> > won't waste time recursively descending into .svn directories just to
> > ignore every file in there.
>
> That's really fast.
Wouldn't it be even better (and faster) to use
find . -wholename '*/.svn' -prune -o -print0 | xargs -0 grep "\"edit\"" -l
instead of -exec (which runs one grep per file)?
Ciao, / /
/--/
/ / ANS
More information about the kde-core-devel
mailing list