On Tue, Dec 12, 2006 at 04:49:41PM +0100, Andreas Pettersson wrote:
> Brett Parker wrote:
> >Better still:
> >        find . -type f -mtime +60 -print0 | xargs -0 rm
> >
> >Just on the offchance that you've got some strange filenames.
> >
> >  
> >
> Even better?
> 
>        find . -type -f -mtime +60 -delete

hmmm - depends on how find implements -delete I suspect, if it is just
an unlink, then yeah - better :) If it calls an external program,
though, and does it once for every file, then it's going to be more
overhead than find and xargs ;) (without looking at the code to find, I
have no idea what it does :)

-- 
Brett Parker

-- 
## List details at http://www.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/

Reply via email to