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.orgReceived on 01/27/04
This archive was generated by hypermail 2.2.0 : 12/19/08 EST