On Mon, Sep 6, 2010 at 1:34 PM, Ehud Karni wrote:
> On Mon, 6 Sep 2010 09:03:52 Gabor Szabo wrote:
>>
>> Very nice.
>> I could not find it out from the archive, has it been accepted?
>
> No. I got no reply from the diffutil maintainer.
Maybe you need to send it as a new e-mail with [PATCH] in the
On Mon, 6 Sep 2010 09:03:52 Gabor Szabo wrote:
>
> Very nice.
> I could not find it out from the archive, has it been accepted?
No. I got no reply from the diffutil maintainer.
Ehud.
--
Ehud Karni Tel: +972-3-7966-561 /"\
Mivtach - Simon Fax: +972-3-7976-561 \ / ASCII Ribbon
On Sun, Sep 5, 2010 at 5:36 PM, Ehud Karni 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 com
I like the rsync solution - it is what I was going to suggest.
On Sun, Sep 5, 2010 at 5:36 PM, Ehud Karni 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 th
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
Hi Gabor,
You can use rsync.
rsync -avn a b
-n is the flag for dry-run.
If you add the flag -c then it will compute the checksum for every file. If
-c is not used, then it will relay on timestamp and size of file for
comparison.
output:
$ rsync -avn a b
sending incremental file list
a/
a/file
se
Gabor Szabo writes:
> hi,
>
> 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 understan
If you want to compare filenames, size, ownership and last update time:
cd directory1
ls -alR > /tmp/dirlist.1
cd directory2
ls -alR > /tmp/dirlist.2
diff /tmp/dirlist.1 /tmp/dirlist.2
If you want to compare only sizes and filenames:
cd directory1
ls -alR | cut -d\ -f 5- > /tmp/di
hi,
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 als