Re: [Nolug] Getting rid of old files

From: Ron Johnson <ron.l.johnson_at_cox.net>
Date: Wed, 28 Jan 2004 00:06:09 -0600
Message-Id: <1075269969.7911.4.camel@haggis.homelan>

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....

-- 
-----------------------------------------------------------------
Ron Johnson, Jr. ron.l.johnson@cox.net
Jefferson, LA USA
"I have been assured by a very knowing American of my
acquaintance in London, that a young healthy child well nursed is
at a year old a most delicious, nourishing, and wholesome food,
whether stewed, roasted, baked, or boiled; and I make no doubt
that it will equally serve in a fricassee or a ragout."
A MODEST PROPOSAL FOR PREVENTING THE CHILDREN OF POOR PEOPLE IN
IRELAND FROM BEING A BURDEN TO THEIR PARENTS OR COUNTRY
___________________
Nolug mailing list
nolug@nolug.org
Received on 01/28/04

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