Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Mar 2010 11:41:56 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        "Aryeh M. Friedman" <aryeh.friedman@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: how to compare permissions between two dirs
Message-ID:  <4BA75784.6070409@infracaninophile.co.uk>
In-Reply-To: <4BA75588.4090107@gmail.com>
References:  <4BA75588.4090107@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 22/03/2010 11:33:28, 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)

Something like:

    rsync -nva old-dir/ new-dir/

Should tell you about any files where there is a difference either in
contents or in meta-data between the two directories.  Unfortunately, it
doesn't tell you exactly what the difference is, so you'll have to use
ls(1) etc. to examine the files it highlights in more detail.

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
                                                  Kent, CT11 9PW



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BA75784.6070409>