From owner-freebsd-stable@FreeBSD.ORG Thu Jan 20 20:43:51 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0C92816A4CE for ; Thu, 20 Jan 2005 20:43:50 +0000 (GMT) Received: from lora.pns.networktel.net (lora.pns.networktel.net [216.83.236.238]) by mx1.FreeBSD.org (Postfix) with ESMTP id 54BE443D54 for ; Thu, 20 Jan 2005 20:43:50 +0000 (GMT) (envelope-from phill@sysctl.net) Received: from MESE (wifi-ipnet.sysctl.net [216.83.242.102]) j0KKjfg3000306; Thu, 20 Jan 2005 20:45:42 GMT (envelope-from phill@sysctl.net) From: "Phillip Salzman" To: "'Wolfgang Zenker'" Date: Thu, 20 Jan 2005 14:43:39 -0600 Message-ID: <00d001c4ff30$bda2e960$6745a8c0@MESE> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Importance: Normal X-AntiVirus: checked by Vexira Milter 1.0.6; VAE 6.29.0.5; VDF 6.29.0.52 cc: 'Peter Jeremy' cc: stable@freebsd.org Subject: RE: Very large directory X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jan 2005 20:43:51 -0000 Yeah - I thought of that after the for loop had already been in the = process of starting for an hour. I figured I wasn't going to worry about it, = and just head to bed at that point. If I wasn't drunk at the time (I'll = pretend thats my excuse) I might have done a strings .| xargs instead of the = shell script. Oh well. I can't really wo > -----Original Message----- > From: Wolfgang Zenker [mailto:wolfgang@lyxys.ka.sub.org]=20 > Sent: January 20, 2005 2:04 PM > To: Phillip Salzman > Cc: 'Peter Jeremy'; stable@freebsd.org > Subject: Re: Very large directory >=20 >=20 > Hello Phillip, >=20 > > I've received a couple perl scripts from a few different people. I=20 > > can't use any of them until this evening due to the current load of=20 > > the machines though. Last night I ended up doing a strings on the=20 > > directory, and taking its output into a for loop removing the files. >=20 > if you have a bit of time to spare, take a look at the=20 > xargs(1) manpage. Using xargs instead of a for loop would=20 > have saved you a lot of time and system load (and a little=20 > bit of typing :-) >=20 > Wolfgang >=20