From owner-freebsd-questions@FreeBSD.ORG Tue Nov 18 17:25:48 2003 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 5B1B516A4CF for ; Tue, 18 Nov 2003 17:25:48 -0800 (PST) Received: from www6.web2010.com (www6.web2010.com [216.157.5.254]) by mx1.FreeBSD.org (Postfix) with ESMTP id CEB9C43FDF for ; Tue, 18 Nov 2003 17:25:44 -0800 (PST) (envelope-from MLandman@face2interface.com) Received: from delliver.face2interface.com (dialup-wash-129-203.thebiz.net [64.30.129.203] (may be forged)) by www6.web2010.com (8.12.10/8.9.0) with ESMTP id hAJ1PQp6006687 for ; Tue, 18 Nov 2003 20:25:27 -0500 (EST) Message-Id: <6.0.0.22.0.20031118201221.09ea7a88@pop.face2interface.com> X-Sender: face@pop.face2interface.com X-Mailer: QUALCOMM Windows Eudora Version 6.0.0.22 Date: Tue, 18 Nov 2003 20:25:40 -0500 To: freebsd-questions@FreeBSD.org From: Marty Landman Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: grep & ls question 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: Wed, 19 Nov 2003 01:25:48 -0000 I have transferred over, via ftp a whole bunch of stuff. Some of the files got allocated but not transferred so I thought a convenient way to identify them would be grepping a list dir output. Here's a sample of what I get: Swami:: ls -Rlh /usr/local/www/data/ | grep ' 0B' -rw-r--r-- 1 Marty wheel 0B Nov 18 17:54 img52.jpg -rw-r--r-- 1 Marty wheel 0B Nov 18 17:54 img54.jpg The problem with this output is that it doesn't show the full (relative) directory path, e.g. home/img52.jpg. Although I've specified -R so that info is available if I eyeball the ls -Rlh /usr/local/www/data/ output alongside the report after grepping it'd be more convenient to be able to have the full relative path for each file. I realize sometimes the solution is harder than the problem and I'm not looking for anything unreasonable; if this is about what it should be under the circumstances that's cool, just interested in knowing. tia, Marty Landman Face 2 Interface Inc 845-679-9387 Sign On Required: Web membership software for your site Make a Website: http://face2interface.com/Home/Demo.shtml