I like the rsync solution - it is what I was going to suggest.
On Sun, Sep 5, 2010 at 5:36 PM, Ehud Karni <e...@unix.mvs.co.il> wrote: > On Sat, 4 Sep 2010 12:21:40, Gabor Szabo wrote: > > > > I guess there is an obvious command for this, I just don't know it. > > > > How can I compare two directory structures if the content is the same > > *disregarding* > > actual file content, or comparing that only if the file names and > > sizes are the same? > > > > As I understand diff -r would do it but it would also compare files > > line by line. > > I had the same problem, so I patched diff to do it. > > I added 2 switches -Z: compare by siZe only, > -M: different Modification time is a difference. > > For a full description with the patches see: > http://www.mail-archive.com/bug-diffut...@gnu.org/msg00023.html > > > As these are images and movies, I don't want to compare them line by > > line or event byte by byte. > > Seems very common these days. > > Ehud. > > > -- > Ehud Karni Tel: +972-3-7966-561 /"\ > Mivtach - Simon Fax: +972-3-7976-561 \ / ASCII Ribbon Campaign > Insurance agencies (USA) voice mail and X Against HTML Mail > http://www.mvs.co.il FAX: 1-815-5509341 / \ > GnuPG: 98EA398D <http://www.keyserver.net/> Better Safe Than Sorry > > _______________________________________________ > Linux-il mailing list > Linux-il@cs.huji.ac.il > http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il >
_______________________________________________ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il