From owner-freebsd-questions@FreeBSD.ORG Fri Feb 11 00:22:12 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D1DE216A4CE for ; Fri, 11 Feb 2005 00:22:12 +0000 (GMT) Received: from smtp802.mail.sc5.yahoo.com (smtp802.mail.sc5.yahoo.com [66.163.168.181]) by mx1.FreeBSD.org (Postfix) with SMTP id 9D18E43D31 for ; Fri, 11 Feb 2005 00:22:12 +0000 (GMT) (envelope-from chris@chris-s.com) Received: from unknown (HELO nitrous.chris-s.com) (straycat40@sbcglobal.net@216.100.251.65 with plain) by smtp802.mail.sc5.yahoo.com with SMTP; 11 Feb 2005 00:22:12 -0000 Received: from nitrous.chris-s.com (localhost.chris-s.com [127.0.0.1]) by nitrous.chris-s.com (8.13.1/8.12.10) with ESMTP id j1B0OYlO024603 for ; Thu, 10 Feb 2005 16:24:35 -0800 (PST) (envelope-from chris@nitrous.chris-s.com) Received: (from chris@localhost) by nitrous.chris-s.com (8.13.1/8.12.10/Submit) id j1B0OYiD024602 for freebsd-questions@freebsd.org; Thu, 10 Feb 2005 16:24:34 -0800 (PST) (envelope-from chris) Date: Thu, 10 Feb 2005 16:24:34 -0800 From: Chris Sechiatano To: freebsd-questions@freebsd.org Message-ID: <20050211002434.GC24067@chris-s.com> References: <20050210231719.GA24067@chris-s.com> <20050210233311.GB3861@orion.daedalusnetworks.priv> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050210233311.GB3861@orion.daedalusnetworks.priv> User-Agent: Mutt/1.4.2.1i X-PGP-Key: 0x0021EFA0 Subject: Re: Script Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Feb 2005 00:22:13 -0000 This is close to what I was trying before. Is there a way I can pipe the output of locate into xargs? The filesystem is 680 Gigs and I'd like to only search it once if possible. This doesn't work: # slocate -i -d /tmp/04vfile001_db *.wmv | xargs -0 ls -l Thanks On Fri, Feb 11, 2005 at 01:33:11AM +0200, Giorgos Keramidas wrote: > > Use -print0 (that's a zero at the end of print), and the -0 option of > xargs. Then the whitespace shouldn't matter. > > # cd /storage/users > # find . -type d -print0 | xargs -0 du -sk > > That should do it. > > - Giorgos