From owner-freebsd-questions@FreeBSD.ORG Mon Mar 22 14:30:09 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 056E0106566C for ; Mon, 22 Mar 2010 14:30:09 +0000 (UTC) (envelope-from glarkin@FreeBSD.org) Received: from mail1.sourcehosting.net (113901-app1.sourcehosting.net [72.32.213.11]) by mx1.freebsd.org (Postfix) with ESMTP id D65548FC1D for ; Mon, 22 Mar 2010 14:30:08 +0000 (UTC) Received: from 68-189-245-235.dhcp.oxfr.ma.charter.com ([68.189.245.235] helo=cube.entropy.prv) by mail1.sourcehosting.net with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1Ntidm-0001hR-2X; Mon, 22 Mar 2010 10:30:07 -0400 Received: from [127.0.0.1] (fireball.entropy.prv [192.168.1.12]) by cube.entropy.prv (Postfix) with ESMTP id 1FE093D414BA; Mon, 22 Mar 2010 10:30:02 -0400 (EDT) Message-ID: <4BA77EEF.5020004@FreeBSD.org> Date: Mon, 22 Mar 2010 10:30:07 -0400 From: Greg Larkin Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: "Aryeh M. Friedman" References: <4BA75588.4090107@gmail.com> In-Reply-To: <4BA75588.4090107@gmail.com> X-Enigmail-Version: 0.96.0 OpenPGP: id=1C940290 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Score: -0.4 (/) Cc: freebsd-questions@freebsd.org Subject: Re: how to compare permissions between two dirs X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: glarkin@FreeBSD.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Mar 2010 14:30:09 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Aryeh M. Friedman wrote: > In switching to a new make file for a personal project I have run into > the problem of under the old makefile everything works (web site) and > under the new one it does not... when manually looking at the two dirs > they appear identical in layout, sizes and perms (dir and file level) > but I want to make sure... is there any way to compare two diff dirs and > see if they only differ in date stamps? (note since there are several > developers working on this project I need to compare even if the owners > are diff) Hi Aryeh, I haven't tested this extensively, but it looks promising: mtree -c -n -i -p /path/to/directory/one > /tmp/dirlist1.txt mtree -c -n -i -p /path/to/directory/two > /tmp/dirlist2.txt diff /tmp/dirlist[12].txt Hope that helps, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/sourcehosting/ - Follow me, follow you -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFLp37v0sRouByUApARAm6sAJ9OIXbr7uSJ9PeH4RPf3EwxPmJPiwCcC8Sb TzWV52qn1cx00sypkngObXs= =r1W2 -----END PGP SIGNATURE-----