[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help: regarding comparing two directory structures

Hello rajesh,

On Wed, 2 Nov 2005 04:48:12 -0800 (PST)
rajesh kumar <rajesh_thota_kumar@yahoo.com> wrote:

> Hi,
> I wish to compare tree stucures of two directories. that is to
> compare the subdirectories as well as their subdirectories and
> so on...only directories and subdirectories and their
> subdirectories. I am not interested about their contnets like
> files.

cd $dir1; find . -type d | sort > /tmp/dir1
cd $dir2; find . -type d | sort > /tmp/dir2
diff --brief /tmp/dir1 /tmp/dir2


Jörg Schütter                      http://www.schuetter.org/joerg
joerg@schuetter.org                http://www.lug-untermain.de/

Reply to: