From owner-freebsd-stable@FreeBSD.ORG Thu Jan 20 20:05:11 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 2E2D216A4CE for ; Thu, 20 Jan 2005 20:05:11 +0000 (GMT) Received: from subnet.sub.net (subnet.sub.net [193.197.184.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5BA6A43D45 for ; Thu, 20 Jan 2005 20:05:09 +0000 (GMT) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from subnet.sub.net (uucp@localhost [127.0.0.1]) j0KK56lb032607; Thu, 20 Jan 2005 21:05:07 +0100 (CET) (envelope-from wolfgang@lyxys.ka.sub.org) X-MDaemon-Deliver-To: stable@freebsd.org Received: from lyxys.ka.sub.org (uucp@localhost) by subnet.sub.net (8.13.2/8.13.2/Submit) with bsmtp id j0KK55ui032606; Thu, 20 Jan 2005 21:05:05 +0100 (CET) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from localhost (992 bytes) by lyxys.ka.sub.org via sendmail with P:stdio/R:smart_host/T:inet_uusmtp (sender: ) (ident using unix) id for ; Thu, 20 Jan 2005 21:03:30 +0100 (CET) (Smail-3.2.0.111 2000-Feb-17 #1 built 2000-Aug-23) Message-Id: From: wolfgang@lyxys.ka.sub.org (Wolfgang Zenker) In-Reply-To: <008001c4ff19$a38deff0$6745a8c0@MESE> To: Phillip Salzman Date: Thu, 20 Jan 2005 21:03:30 +0100 (CET) X-Mailer: ELM [version 2.4ME+ PL99f (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII 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:05:11 -0000 Hello Phillip, > I've received a couple perl scripts from a few different people. I can't > use any of them until this evening due to the current load of the machines > though. Last night I ended up doing a strings on the directory, and taking > its output into a for loop removing the files. if you have a bit of time to spare, take a look at the xargs(1) manpage. Using xargs instead of a for loop would have saved you a lot of time and system load (and a little bit of typing :-) Wolfgang