From owner-freebsd-questions@FreeBSD.ORG Tue Jan 1 01:54:06 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 E7A92CF3 for ; Tue, 1 Jan 2013 01:54:06 +0000 (UTC) (envelope-from erichsfreebsdlist@alogt.com) Received: from alogt.com (alogt.com [69.36.191.58]) by mx1.freebsd.org (Postfix) with ESMTP id A511A8FC0A for ; Tue, 1 Jan 2013 01:54:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=alogt.com; s=default; h=Content-Transfer-Encoding:Content-Type:Mime-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date; bh=LhLzQShmeAhEzsaAXEzVm5lgTHJuKmIpGkTOPEUmbcc=; b=HWl0NfE7nWICOIZVpHzPnXApkwCYufbYFfblhSa368/2r14Wj2mZaAlm3FZGWNR2bUXtt/86i9/LR0l8LnT72UN7sjed4XtycGY3uDKPidWXjJp1iZs4P0GHQng2ZvPW; Received: from [122.129.203.50] (port=62712 helo=X220.ovitrap.com) by sl-508-2.slc.westdc.net with esmtpsa (SSLv3:DHE-RSA-AES128-SHA:128) (Exim 4.80) (envelope-from ) id 1Tpr3G-000EWI-PK; Mon, 31 Dec 2012 18:53:59 -0700 Date: Tue, 1 Jan 2013 08:53:55 +0700 From: Erich Dollansky To: Fbsd8 Subject: Re: utility to compare 2 dir trees Message-ID: <20130101085355.4e4767c2@X220.ovitrap.com> In-Reply-To: <50E23FC3.5060204@a1poweruser.com> References: <50E23A95.80907@a1poweruser.com> <50E23FC3.5060204@a1poweruser.com> X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.6; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - sl-508-2.slc.westdc.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - alogt.com X-Get-Message-Sender-Via: sl-508-2.slc.westdc.net: authenticated_id: erichsfreebsdlist@alogt.com X-Source: X-Source-Args: X-Source-Dir: 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 01:54:07 -0000 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: > >=20 > >> I want to compare 2 different directory trees to each other to > >> locate any differences in directories and files contained there in. > >> > >> Any suggestions? > >> > >=20 > > mtree(8) > >=20 >=20 >=20 > 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. =46rom 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 > _______________________________________________ > 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"