Date: Mon, 22 Mar 2010 10:30:07 -0400 From: Greg Larkin <glarkin@FreeBSD.org> To: "Aryeh M. Friedman" <aryeh.friedman@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: how to compare permissions between two dirs Message-ID: <4BA77EEF.5020004@FreeBSD.org> In-Reply-To: <4BA75588.4090107@gmail.com> References: <4BA75588.4090107@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
-----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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BA77EEF.5020004>