From owner-freebsd-questions@FreeBSD.ORG Sat Jun 10 16:34:20 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 5EECB16A52C for ; Sat, 10 Jun 2006 16:34:20 +0000 (UTC) (envelope-from freebsd@meijome.net) Received: from sigma.octantis.com.au (ns2.octantis.com.au [207.44.189.124]) by mx1.FreeBSD.org (Postfix) with ESMTP id 445DD45303 for ; Sat, 10 Jun 2006 09:36:02 +0000 (GMT) (envelope-from freebsd@meijome.net) Received: (qmail 404 invoked from network); 10 Jun 2006 19:36:01 +1000 Received: from 210-84-38-170.dyn.iinet.net.au (HELO localhost) (210.84.38.170) by sigma.octantis.com.au with (DHE-RSA-AES256-SHA encrypted) SMTP; 10 Jun 2006 19:36:01 +1000 Date: Sat, 10 Jun 2006 19:35:57 +1000 From: Norberto Meijome To: Ian Smith Message-ID: <20060610193557.2105f0ff@localhost> In-Reply-To: References: <20060610104044.2933d274@localhost> X-Mailer: Sylpheed-Claws 2.2.3 (GTK+ 2.8.18; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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:34:20 -0000 On Sat, 10 Jun 2006 19:11:18 +1000 (EST) Ian Smith wrote: > 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 > :) thanks mate. as you can see, there seem to be several tools that do parts of it, few that combine them. i may not want to sync all the tree of course (hence rsync good for quick comparison , etc.etc). xxdiff is quite good close to what i was after (despite the UI not being the most up to date,still works quite well). give it a try, make sure you enable recursiveness ;) Beto