Fbsd8 wrote:
Erich Dollansky wrote:
Hi,

On Mon, 31 Dec 2012 20:45:39 -0500
Fbsd8 <fb...@a1poweruser.com> wrote:

Adam Vande More wrote:
On Mon, Dec 31, 2012 at 7:23 PM, Fbsd8 <fb...@a1poweruser.com>
wrote:

I want to compare 2 different directory trees to each other to
locate any differences in directories and files contained there in.

Any suggestions?

mtree(8)


 From the man page I don't see how to code mtree to compare 2
different directory trees against each other.

you can compare a directory tree which is rooted in your current
directory and a specified one.

From man:

The mtree utility compares the file hierarchy rooted in the current
directory against a specification read from the standard input.
Messages are written to the standard output for any files whose
characteristics do not match the specifications, or which are missing
from either the file hierarchy or the specification.

Erich



So
cd dir-tree1
mtree -p dir-tree2

Do I understand you correctly?

ended up trying
cd dir-tree1
mtree -c | mtree -p dir-tree2

Now this seems like it worked, except every thing was flagged for non-matching modification time. How do I tell it to not check modification time?

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to