From: Joerg.Schilling@fokus.fraunhofer.de (Joerg Schilling)
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] comparing two complex directories
Date: Fri, 30 Oct 2009 10:17:10 +0100 [thread overview]
Message-ID: <4aeaaf16.Z3ZU43gg9OiGl5r0%Joerg.Schilling@fokus.fraunhofer.de> (raw)
In-Reply-To: <4AEA923F.5010308@f_philipp.fastmail.net>
Florian Philipp <lists@f_philipp.fastmail.net> wrote:
> James schrieb:
> > All,
> >
> > I'm trying to find a good way to compare two complex directory
> > structures to see what files differ. I've looked at a few different
> > options:
> >
> > - rsync dry run (someone said this should work, but I'm having trouble
> > getting good information out of this)
> > - diff -rq (this works, but it's sloowwwwww)
> >
> > I've used cdircmp before but it tends to crash on complex directories
> > (a directory with more than a few subdirs and with hidden dot files).
> >
> > Thoughts? Any specific / good utilities for doing this?
star -c -diff -v -C from-dir . to-dir
Check diffopts= to learn how to tell star what to compare.
It is fast, compares all file attributes and it does not go into loops if you
encounter symlinks to directories.
Jörg
--
EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
js@cs.tu-berlin.de (uni)
joerg.schilling@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/
URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily
prev parent reply other threads:[~2009-10-30 9:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-29 18:35 [gentoo-user] comparing two complex directories James
2009-10-29 18:37 ` James Ausmus
2009-10-30 7:14 ` Florian Philipp
2009-10-30 9:17 ` Joerg Schilling [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4aeaaf16.Z3ZU43gg9OiGl5r0%Joerg.Schilling@fokus.fraunhofer.de \
--to=joerg.schilling@fokus.fraunhofer.de \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox