Re: comparing two directory structures

2010-09-06 Thread Gabor Szabo
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

Re: comparing two directory structures

2010-09-06 Thread Ehud Karni
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

Re: comparing two directory structures

2010-09-05 Thread Gabor Szabo
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

Re: comparing two directory structures

2010-09-05 Thread Tom Goren
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

Re: comparing two directory structures

2010-09-05 Thread Ehud Karni
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

Re: comparing two directory structures

2010-09-04 Thread Kfir Lavi
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

Re: comparing two directory structures

2010-09-04 Thread Oleg Goldshmidt
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

Re: comparing two directory structures

2010-09-04 Thread Omer Zak
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

comparing two directory structures

2010-09-04 Thread Gabor Szabo
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