From owner-freebsd-questions Sun May 7 17:49:11 2000 Delivered-To: freebsd-questions@freebsd.org Received: from oracle.clara.net (oracle.clara.net [195.8.69.94]) by hub.freebsd.org (Postfix) with ESMTP id CDE7A37C146 for ; Sun, 7 May 2000 17:49:01 -0700 (PDT) (envelope-from merlin@A470.com) Received: from [212.126.131.167] (helo=A470.com) by oracle.clara.net with smtp (Exim 2.12 #2) id 12objG-0003su-00 for freebsd-questions@freebsd.org; Mon, 8 May 2000 01:48:59 +0100 Received: (qmail 6793 invoked by uid 1000); 8 May 2000 00:51:23 -0000 Date: Mon, 8 May 2000 00:51:23 +0000 From: Darren Wyn Rees To: freebsd-questions@freebsd.org Subject: Re: "rm -rf *" - "argument list too long" Message-ID: <20000508005123.F559@netlink.co.uk> References: <20000507201410.M540@netlink.co.uk> <39160161.4BCFEFE3@gorean.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <39160161.4BCFEFE3@gorean.org> Organization: A470 X-No-Archive: yes X-PGP-812C54B1: F8 79 5E 84 F0 20 A5 62 FA 2D E9 BD BE 06 7D 10 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, May 07, 2000 at 04:50:57PM -0700, Doug Barton wrote: > First, ignore the overly complicated and potentially dangerous answers > so far on this thread. :) Second, think about it for a minute. If "*" > provides a list that's too long for rm to handle, why not break it up > into smaller chunks? Good suggestion... And it's what I did (though I didn't mention it). However, what I found was that it was still taking lots of time to "break it up"... eg. I'd try rm *54* and it wouldn't work, so I'd try rm *53* and it wouldn't work... but then, rm *52* would. I didn't try using a [range], so your suggestion was helpful. Thanks. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message