Re: [Nolug] Getting rid of old files

From: Mark A. Hershberger <mah_at_everybody.org>
Date: Tue, 27 Jan 2004 21:24:58 -0600
Message-ID: <87wu7cbvqt.fsf@weblog.localhost>

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.

> Of course, if you are *not* going to delete 20,000 at once....

Either way, it works.

Mark.

-- 
Peace is only better than war if peace isn't hell, too.
    -- Walker Percy, "The Second Coming"
___________________
Nolug mailing list
nolug@nolug.org
Received on 01/27/04

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