From owner-freebsd-questions@FreeBSD.ORG Sat Jun 10 16:36:52 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CAF7B16B9F6 for ; Sat, 10 Jun 2006 16:36:52 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from gaia.nimnet.asn.au (nimbin.lnk.telstra.net [139.130.45.143]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A51644FF0 for ; Sat, 10 Jun 2006 09:11:25 +0000 (GMT) (envelope-from smithi@nimnet.asn.au) Received: from localhost (smithi@localhost) by gaia.nimnet.asn.au (8.8.8/8.8.8R1.4) with SMTP id TAA11464; Sat, 10 Jun 2006 19:11:18 +1000 (EST) (envelope-from smithi@nimnet.asn.au) Date: Sat, 10 Jun 2006 19:11:18 +1000 (EST) From: Ian Smith To: Norberto Meijome In-Reply-To: <20060610104044.2933d274@localhost> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-questions@freebsd.org Subject: Re: Directory and file comparison tool for X? 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: Sat, 10 Jun 2006 16:36:52 -0000 On Sat, 10 Jun 2006, Norberto Meijome wrote: > On Fri, 9 Jun 2006 20:56:17 +1000 (EST) > Ian Smith wrote: > > > I'm looking for a tool that will allow me to compare directories > > > (recursively) showing what files are different,etc. meld ( textproc/meld ) > > > can do this to some extent, showing missing files,etc, but not showing > > > what files are different withoug having to open each file and do a diff. > > > > Well of course 'diff -r dir1 dir2 | less' does that well in an xterm :) > > > > yeah, but it's just way too verbose. something that allows very quick > determination of differences / missing files, transfer them from one tree to > another,etc. Specially for LARGE trees. A job for rsync, perhaps, if you want to automatically syncronise the trees, rather than just review the diffs? (caveat: I know very close to nothing about rsync, beyond having reading its man xty-x times :) > > But I guess you're after a more pointy clicky solution :) > > not because of point+click per se, but yes for faster overview of things. I recall a wonderful OS/2 tool for this purpose .. ahem, moving on .. > > % diff bittorrent/ bittorrent2/ > > diff bittorrent/differingfile bittorrent2/differingfile > > 1,2c1,3 > > < this one in bittorrent dir [..] > > yeah.. i tried this with 2 src trees with over 1.2 K files each... it was way > too much to digest quickly :D Ok, my last shot with good ol' diff, on the same filesets (this is news to me too; I haven't explored many of the diff options much before): % diff -rq bittorrent/ bittorrent2/ Files bittorrent/differingfile and bittorrent2/differingfile differ Only in bittorrent2/: not_in_1 Only in bittorrent/: not_in_2 For moving files between two trees, looks like a bit of scripting on -q (--brief) output may get you there? Hopefully someone has a better idea? cheers, Ian