Date: Thu, 13 Sep 2012 13:08:21 -0700 From: Gary Kline <kline@thought.org> To: Jonathan McKeown <j.mckeown@ru.ac.za> Cc: freebsd-questions@freebsd.org Subject: Re: cksum entire dir?? Message-ID: <20120913200821.GA26989@ethic.thought.org> In-Reply-To: <201209131023.47782.j.mckeown@ru.ac.za> References: <20120911213804.GA9817@ethic.thought.org> <201209120912.58165.j.mckeown@ru.ac.za> <20120912202945.GC17551@ethic.thought.org> <201209131023.47782.j.mckeown@ru.ac.za>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Sep 13, 2012 at 10:23:47AM +0200, Jonathan McKeown wrote: > On Wednesday 12 September 2012 22:29:45 Gary Kline wrote: > > > how, with mtree, could I tell whether dir1 == dir2 or not? > > From the manpage: > > ``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.'' > > So you run mtree twice, once against dir1 with the -c option to output the > specification for the directory tree to stdout (which you can capture to a > file, or pipe straight into the second invocation) and once against dir2 with > the output of the first one as input (either in a pipeline, or by using -f > with the filename of the captured output). > > Jonathan > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" I'm having unexpected troubles with my old BSD server. ... I've seen Waitman's examples, and your paragraphs above--[thankx, both of you, BTW]. I'Ve got several hours of piecing the fragments of my original *desktop* back together. Following that, I'll be back. gary -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix Twenty-six years of service to the Unix community.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120913200821.GA26989>