From owner-freebsd-questions@FreeBSD.ORG Tue Jan 29 02:55:05 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 25A8F700 for ; Tue, 29 Jan 2013 02:55:05 +0000 (UTC) (envelope-from ralf.mardorf@rocketmail.com) Received: from nm3-vm0.bullet.mail.ird.yahoo.com (nm3-vm0.bullet.mail.ird.yahoo.com [77.238.189.213]) by mx1.freebsd.org (Postfix) with SMTP id 60F7BF93 for ; Tue, 29 Jan 2013 02:55:03 +0000 (UTC) Received: from [77.238.189.50] by nm3.bullet.mail.ird.yahoo.com with NNFMP; 29 Jan 2013 02:54:56 -0000 Received: from [217.146.189.65] by tm3.bullet.mail.ird.yahoo.com with NNFMP; 29 Jan 2013 02:54:56 -0000 Received: from [127.0.0.1] by smtp145.mail.ird.yahoo.com with NNFMP; 29 Jan 2013 02:54:56 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rocketmail.com; s=s1024; t=1359428096; bh=uqQ7+qQ8HD2lzOsBn8CJ8ovDIknjMuqjKaoozYdagA8=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Content-Type:To:Subject:References:Date:MIME-Version:Content-Transfer-Encoding:From:Message-ID:In-Reply-To:User-Agent; b=Gs/VOMb5nG7h54BvjsWc5EDp8JooyptlV7lYcjgedFt3CiouW17Kxk/EoAruNQmgVD9wbUWk1KybWNCT7MLpP6OADURPHPB0LsCMHRAg8fGgS8TNpllrkWk2UyUSjYdWY4obouQfiZJWDGB0auNF4LDRFV7AF7pjaBx6qkIwOHg= X-Yahoo-Newman-Id: 623997.2110.bm@smtp145.mail.ird.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: chVOzkcVM1mLvJ5F5y2lx2Mw_esks2g70rG10.JJnK4kK91 cDMng2pT_LBDKN17NeaDVXiTNs7g93A.A9f7rkJQec.IbaT9Agb75onIxkE_ uIlMwYjLMzAwIqHmU2jg9a0uGBiECP3eDjuf3RDM6jryz6udoDCSK1orTE.G qlhwqWHb3VttNj1alUFAG2cQJP876Z8a_EK49ZOT1gZKdqory9CDMTFbuMen B2KERnvdl0CLcHDho_PBx0VINbztGnMCH8xUVb__EdhDi4622xTgNyUdWGO8 kwIDmuFUYkLk3Iaw6pRuh6Qsfget3tlw76FNNoeD2sbx3S.YiA8Q1fR11m2N 9xU4TtE8weiDBehHNH.uJHkyQ_JEq9K21LR7F9S9LFUqCmgLF1PUPM03kkpu aOva3yL2D7q3ku_zmsb0YRfBVK3Xwh2Vdn0BclA-- X-Yahoo-SMTP: BeMCPs2swBABTJ3kAeEiC_hE0mz8jRexLddJfD8pI2j32fOacjBmXg-- Received: from freebsd (ralf.mardorf@92.224.211.22 with login) by smtp145.mail.ird.yahoo.com with SMTP; 28 Jan 2013 18:54:56 -0800 PST Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: freebsd-questions@freebsd.org Subject: Re: How to fix a broken owner for files from world & build from ports? References: <20130128182726.42db0712.freebsd@edvax.de> <510736DE.4060701@gmail.com> Date: Tue, 29 Jan 2013 03:54:55 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Ralf Mardorf" Message-ID: In-Reply-To: <510736DE.4060701@gmail.com> User-Agent: Opera Mail/12.12 (FreeBSD) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jan 2013 02:55:05 -0000 On Tue, 29 Jan 2013 03:41:34 +0100, Joshua Isom wrote: > On 1/28/2013 7:56 PM, Ralf Mardorf wrote: >> Still not perfect, I guess I need something similar to ls -RAl for some >> directories :S and I didn't test what awk will do with names including a >> space. > > Try `find /dir -ls`. You can pipe it into sed like this `find /dir -ls| > sed -e 's%/dir%%g'` and then get something easily comparable. Cool, it does display the path, but there's still the other issue: $ touch test\ test $ find * -ls| sed -e 's%/dir%%g'| awk '{print $5" "$11}' rocketmouse test Perhaps awk isn't that important, but it e.g. will filter different file sizes, for e.g. configurations I edited in the meantime. :(