Re: [Nolug] Getting rid of old files

From: Tim Kelley <entropy_at_r00tserverz.net>
Date: Wed, 28 Jan 2004 06:40:36 -0600
Message-Id: <200401280640.36343.entropy@r00tserverz.net>

On Wednesday 28 January 2004 00:06, Ron Johnson wrote:
> On Tue, 2004-01-27 at 21:24, Mark A. Hershberger wrote:
> > Ron Johnson <ron.l.johnson@cox.net> writes:
> > >> $ find . -mtime +7 -print0 | xargs -0 rm
> > >
> > > Doesn't this suffer the limitation that the command buffer would
> > > get filled, if you were going to delete *lots* of files?
> >
> > Nope. xargs knows how much of a command line buffer you have and
> > splits up the input appropriately.
>
> Ah, interesting....

Actually the -n or --max-args switch does that for xargs ...

-- 
Tim
   Kelley
entropy @ r00tserverz.net [ New Orleans, LA ]
       __     __    _                _____                 
  ____/ /__  / /_  (_)___ _____    _/_/ (_)___  __  ___  __
 / __  / _ \/ __ \/ / __ `/ __ \ _/_// / / __ \/ / / / |/_/
/ /_/ /  __/ /_/ / / /_/ / / / //_/ / / / / / / /_/ />  <  
\__,_/\___/_.___/_/\__,_/_/ /_/_/  /_/_/_/ /_/\__,_/_/|_|  
___________________
Nolug mailing list
nolug@nolug.org
Received on 01/28/04

This archive was generated by hypermail 2.2.0 : 12/19/08 EST