From owner-freebsd-questions@FreeBSD.ORG Thu Sep 13 20:10:58 2012 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 4D8851065675 for ; Thu, 13 Sep 2012 20:10:58 +0000 (UTC) (envelope-from kline@thought.org) Received: from m1plsmtpa01-04.prod.mesa1.secureserver.net (m1plsmtpa01-04.prod.mesa1.secureserver.net [64.202.165.6]) by mx1.freebsd.org (Postfix) with ESMTP id 297548FC16 for ; Thu, 13 Sep 2012 20:10:58 +0000 (UTC) Received: from ethic.thought.org ([209.180.213.209]) by m1plsmtpa01-04.prod.mesa1.secureserver.net with id yk8M1j00A4XeM0101k8MMU; Thu, 13 Sep 2012 13:08:22 -0700 Date: Thu, 13 Sep 2012 13:08:21 -0700 From: Gary Kline To: Jonathan McKeown Message-ID: <20120913200821.GA26989@ethic.thought.org> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201209131023.47782.j.mckeown@ru.ac.za> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-questions@freebsd.org Subject: Re: cksum entire dir?? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Sep 2012 20:10:58 -0000 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.