From owner-freebsd-questions@FreeBSD.ORG Tue Jan 1 02:39:48 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9A0811C0 for ; Tue, 1 Jan 2013 02:39:48 +0000 (UTC) (envelope-from fbsd8@a1poweruser.com) Received: from mail-03.name-services.com (mail-03.name-services.com [69.64.155.195]) by mx1.freebsd.org (Postfix) with ESMTP id 77EC58FC08 for ; Tue, 1 Jan 2013 02:39:48 +0000 (UTC) Received: from [10.0.10.3] ([173.88.197.103]) by mail-03.name-services.com with Microsoft SMTPSVC(6.0.3790.4675); Mon, 31 Dec 2012 18:39:49 -0800 Message-ID: <50E24C71.5090104@a1poweruser.com> Date: Mon, 31 Dec 2012 21:39:45 -0500 From: Fbsd8 User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Erich Dollansky Subject: Re: utility to compare 2 dir trees References: <50E23A95.80907@a1poweruser.com> <50E23FC3.5060204@a1poweruser.com> <20130101085355.4e4767c2@X220.ovitrap.com> <50E24558.8040501@a1poweruser.com> In-Reply-To: <50E24558.8040501@a1poweruser.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 01 Jan 2013 02:39:49.0763 (UTC) FILETIME=[451DB530:01CDE7C9] X-Sender: fbsd8@a1poweruser.com X-Authenticated-Sender: fbsd8@a1poweruser.com X-EchoSenderHash: [fbsd8]-[a1poweruser*com] Cc: Adam Vande More , FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jan 2013 02:39:48 -0000 Fbsd8 wrote: > Erich Dollansky wrote: >> Hi, >> >> On Mon, 31 Dec 2012 20:45:39 -0500 >> Fbsd8 wrote: >> >>> Adam Vande More wrote: >>>> On Mon, Dec 31, 2012 at 7:23 PM, Fbsd8 >>>> 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?