From owner-freebsd-questions@FreeBSD.ORG Tue Jan 29 03:04:31 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 3F3AF939 for ; Tue, 29 Jan 2013 03:04:31 +0000 (UTC) (envelope-from jrisom@gmail.com) Received: from mail-ia0-x229.google.com (ia-in-x0229.1e100.net [IPv6:2607:f8b0:4001:c02::229]) by mx1.freebsd.org (Postfix) with ESMTP id 0A2D3F0 for ; Tue, 29 Jan 2013 03:04:30 +0000 (UTC) Received: by mail-ia0-f169.google.com with SMTP id j5so5333841iaf.14 for ; Mon, 28 Jan 2013 19:04:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=qE0XOhJTZEow8n8eoRkBWbRMXgp0TzkSsx5AGC7hQgU=; b=t9laGzFt6VBKAs00gzHkGuXTzEG2ni65aIUNxprk/rQwGLNsn1vLx6td5arShMjkFY 6oJLY4qaZStY+RL9+EeJPo9ilEPrxzreMtgIb1XjTNbFYRMt7GIXRCeb9qU4upYksFmt HQ/UvDAbGBvES6Cs5gLKQCIL7F3z7F6VtaPlv2dyqhF7kBPKTqyEYuzelWbnxPGeQwuh pZt5CANTEl/FKetn51raGr6uaLyPG7AUQc+mrm5EHbpzyWx3p+t7f1jf2bV59nH6m+bz d77NoSezcTBHZqpuy7mTUU7WIloiwsz7GHwSMeW27jAaBe4So7DEzXOqIg1pCNhnRQCU ZDxQ== X-Received: by 10.50.42.197 with SMTP id q5mr6541622igl.91.1359428670789; Mon, 28 Jan 2013 19:04:30 -0800 (PST) Received: from [192.168.1.14] (c-98-212-197-211.hsd1.il.comcast.net. [98.212.197.211]) by mx.google.com with ESMTPS id hg2sm767455igc.3.2013.01.28.19.04.29 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 28 Jan 2013 19:04:29 -0800 (PST) Message-ID: <51073C35.8010602@gmail.com> Date: Mon, 28 Jan 2013 21:04:21 -0600 From: Joshua Isom User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 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> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 03:04:31 -0000 On 1/28/2013 8:54 PM, Ralf Mardorf wrote: > 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. > > :( You're basically getting down to the dirty tedious parts. Unless you know a full featured scripting language with a find library to find and compare ownership, or you want a custom c program for a rare occurrence, you're just going to have to do it the tedious way. Computer's aren't always fun and glory. For every beautiful network, someone had to run the wires into the wall, through the dirt, and to the other building.