From owner-freebsd-questions@FreeBSD.ORG Tue Jan 1 02:09:30 2013 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 EA253E9E for ; Tue, 1 Jan 2013 02:09:30 +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 C81C38FC08 for ; Tue, 1 Jan 2013 02:09:30 +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:09:31 -0800 Message-ID: <50E24558.8040501@a1poweruser.com> Date: Mon, 31 Dec 2012 21:09:28 -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> In-Reply-To: <20130101085355.4e4767c2@X220.ovitrap.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 01 Jan 2013 02:09:31.0937 (UTC) FILETIME=[099B7910:01CDE7C5] 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:09:31 -0000 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?