From owner-freebsd-questions Sun May 7 13:30:33 2000 Delivered-To: freebsd-questions@freebsd.org Received: from gold.killercomputing.com (ATHM-216-216-77-156.home.net [216.216.77.156]) by hub.freebsd.org (Postfix) with ESMTP id 7FFBF37BB9F for ; Sun, 7 May 2000 13:30:28 -0700 (PDT) (envelope-from pulcher@killercomputing.com) Received: from popgun ([199.233.181.2]) by gold.killercomputing.com (8.9.3/8.9.3) with SMTP id PAA17138; Sun, 7 May 2000 15:31:12 -0500 (CDT) (envelope-from pulcher@killercomputing.com) Message-ID: <02b001bfb864$8ed928a0$02b5e9c7@killercomputing.com> From: "Harold Pulcher - Killer Computing" To: "Darren Wyn Rees" , References: <20000507201410.M540@netlink.co.uk> Subject: Re: "rm -rf *" - "argument list too long" Date: Sun, 7 May 2000 15:41:00 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG do a man xargs. I think that will do what you need. Harold ----- Original Message ----- From: Darren Wyn Rees To: Sent: Sunday, May 07, 2000 3:14 PM Subject: "rm -rf *" - "argument list too long" > I'm in a directory with a tonne of files I wish to delete. > I type "rm -rf *", but it won't work, it gives "/bin/rm: Argument > list too long". So how can I delete these many files ? > > I can "cd ..", and then "rm -rf ", and that works. > > However, what if I didn't wish to remove directories. In that > case, what would I do to remove the files ? > > Thanks > > darren > > PS. (I'm finding it takes some getting used to putting > the operands to many commands immediately after the command. > Why is this so with FreeBSD? With Linux I can type 'rm * -rf' etc.) > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message