httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject Re: cvs commit: apache-devsite how-to-release.html
Date Sat, 23 Aug 1997 00:08:48 GMT
As long as we're all putting our 2-cents in:

    find . -name .cvsignore -print0 | xargs -0r rm

Is way faster than Roy's on huge directories, and doesn't have the security
problems of Marc's or Ralf's.

Dean

On Fri, 22 Aug 1997, Marc Slemko wrote:

> On Fri, 22 Aug 1997, Roy T. Fielding wrote:
> 
> > To be more concrete, you had
> > 
> >    find . -name ".cvsignore" -print | xargs rm
> > 
> > and I replaced it with
> > 
> >    find . -name ".cvsignore" -exec rm {} \;
> 
> Hey, if we can get into religious disagreements...
> 
> rm `find . -name ".cvsignore" -print`
> 
> I never user -exec rm because if I have enough files that they are too
> long for the command line above (eg. 500000+ darn file news control/
> directory, well before I patched things anyway)) then they are too long to
> have the overhead of forking rm once for each rm.
> 
> xargs does _not_ accomplish the same thing as -exec.
> 
> In this case, however, if the Apache tree grows too big for my method then
> it is too big for me.  <g>
> 
> (not to say I really care which command is listed...)
> 
> 


Mime
View raw message