Showstoppers, was: Re: Fwd: Re: Release Mode

David Faure faure at kde.org
Wed Nov 28 11:51:50 GMT 2007


On Wednesday 28 November 2007, Hans Meine wrote:
> 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)?

What is even better and faster is
wcgrep -r '"edit"'
:-)

wcgrep is part of subversion contrib or available on http://web.davidfaure.fr/scripts/
(I asked the author whether I could put it in kdesdk/scripts/ but didn't get an answer).

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kde-core-devel mailing list