<div dir="ltr"><meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 12.5px; border-collapse: collapse; ">I like the rsync solution - it is what I was going to suggest.</span><div>
<font class="Apple-style-span" face="arial, sans-serif" size="5"><span class="Apple-style-span" style="border-collapse: collapse; font-size: 18px;"><br></span></font><div><br><div class="gmail_quote">On Sun, Sep 5, 2010 at 5:36 PM, Ehud Karni <span dir="ltr"><<a href="mailto:ehud@unix.mvs.co.il">ehud@unix.mvs.co.il</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Sat, 4 Sep 2010 12:21:40, Gabor Szabo wrote:<br>
><br>
> I guess there is an obvious command for this, I just don't know it.<br>
><br>
> How can I compare two directory structures if the content is the same<br>
> *disregarding*<br>
> actual file content, or comparing that only if the file names and<br>
> sizes are the same?<br>
><br>
> As I understand diff -r would do it but it would also compare files<br>
> line by line.<br>
<br>
</div>I had the same problem, so I patched diff to do it.<br>
<br>
I added 2 switches -Z: compare by siZe only,<br>
-M: different Modification time is a difference.<br>
<br>
For a full description with the patches see:<br>
<a href="http://www.mail-archive.com/bug-diffutils@gnu.org/msg00023.html" target="_blank">http://www.mail-archive.com/bug-diffutils@gnu.org/msg00023.html</a><br>
<div class="im"><br>
> As these are images and movies, I don't want to compare them line by<br>
> line or event byte by byte.<br>
<br>
</div>Seems very common these days.<br>
<br>
Ehud.<br>
<font color="#888888"><br>
<br>
--<br>
Ehud Karni Tel: +972-3-7966-561 /"\<br>
Mivtach - Simon Fax: +972-3-7976-561 \ / ASCII Ribbon Campaign<br>
Insurance agencies (USA) voice mail and X Against HTML Mail<br>
<a href="http://www.mvs.co.il" target="_blank">http://www.mvs.co.il</a> FAX: 1-815-5509341 / \<br>
GnuPG: 98EA398D <<a href="http://www.keyserver.net/" target="_blank">http://www.keyserver.net/</a>> Better Safe Than Sorry<br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
Linux-il mailing list<br>
<a href="mailto:Linux-il@cs.huji.ac.il">Linux-il@cs.huji.ac.il</a><br>
<a href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il" target="_blank">http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il</a><br>
</div></div></blockquote></div><br></div></div></div>