From owner-freebsd-stable@FreeBSD.ORG Fri Jan 21 06:14:27 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 0681D16A4CE for ; Fri, 21 Jan 2005 06:14:27 +0000 (GMT) Received: from mail03.syd.optusnet.com.au (mail03.syd.optusnet.com.au [211.29.132.184]) by mx1.FreeBSD.org (Postfix) with ESMTP id 40D6243D4C for ; Fri, 21 Jan 2005 06:14:26 +0000 (GMT) (envelope-from PeterJeremy@optushome.com.au) Received: from cirb503493.alcatel.com.au (c211-30-75-229.belrs2.nsw.optusnet.com.au [211.30.75.229]) j0L6ENa3030282 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Fri, 21 Jan 2005 17:14:24 +1100 Received: from cirb503493.alcatel.com.au (localhost.alcatel.com.au [127.0.0.1])j0L6ENxP068828; Fri, 21 Jan 2005 17:14:23 +1100 (EST) (envelope-from pjeremy@cirb503493.alcatel.com.au) Received: (from pjeremy@localhost)j0L6EMGv068827; Fri, 21 Jan 2005 17:14:22 +1100 (EST) (envelope-from pjeremy) Date: Fri, 21 Jan 2005 17:14:22 +1100 From: Peter Jeremy To: Darryl Okahata Message-ID: <20050121061421.GA68808@cirb503493.alcatel.com.au> References: <200501201130.j0KBUKMZ066099@lurza.secnetix.de> <200501202136.NAA13625@mina.soco.agilent.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200501202136.NAA13625@mina.soco.agilent.com> User-Agent: Mutt/1.4.2i cc: freebsd-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: Fri, 21 Jan 2005 06:14:27 -0000 On Thu, 2005-Jan-20 13:36:30 -0800, Darryl Okahata wrote: > Since the original poster was willing to use -rf, wouldn't it be >better to do: > >cd /var/spool/directory ; find . -type f -print0 | xargs -0 rm -f The original poster mentioned that "find" wouldn't work: find(1) uses fts(3) which reads the entire directory into memory. -- Peter Jeremy