From owner-freebsd-questions@FreeBSD.ORG Thu Feb 10 23:15:13 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 E2A0A16A4D0 for ; Thu, 10 Feb 2005 23:15:13 +0000 (GMT) Received: from smtp801.mail.sc5.yahoo.com (smtp801.mail.sc5.yahoo.com [66.163.168.180]) by mx1.FreeBSD.org (Postfix) with SMTP id 5DE5D43D1D for ; Thu, 10 Feb 2005 23:15:05 +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 smtp801.mail.sc5.yahoo.com with SMTP; 10 Feb 2005 23:14:57 -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 j1ANHJBQ024144 for ; Thu, 10 Feb 2005 15:17:19 -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 j1ANHJ2p024143 for freebsd-questions@freebsd.org; Thu, 10 Feb 2005 15:17:19 -0800 (PST) (envelope-from chris) Date: Thu, 10 Feb 2005 15:17:19 -0800 From: Chris Sechiatano To: FreeBSD Mailing list Message-ID: <20050210231719.GA24067@chris-s.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-PGP-Key: 0x0021EFA0 Subject: 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: Thu, 10 Feb 2005 23:15:14 -0000 Hello, I'm sure everybody loves these kind of questions, but I really appreciate the help. I have a filesystem which is being used by MS workstations. People are storing mp3's, jpgs and other 'non work related files' on here and the management asked me to find all the files and how much space they are using. I created a locate database of the filesystem so I can search that, but the problem is it doesn't show the file sizes. I tried to pipe the output to xargs, but that didn't work either. The file names and paths are pretty long and there's lots of file with single quotes and spaces that xargs does not like I guess. ex: /home/users/CRANESP1/Backup from 7-19-04/My Document's Backup 10-01-02/e-mails to save/eyetest_1.wmv Does anybody have anything that would work in this case? I need to do this for about 40k files. Thanks -- Chris Sechiatano chris@chris-s.com PGP Key 0x0021EFA0