Hello rajesh,

On Wed, 2 Nov 2005 04:48:12 -0800 (PST)
rajesh kumar <[EMAIL PROTECTED]> 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

-- 
Jörg Schütter                      http://www.schuetter.org/joerg
[EMAIL PROTECTED]                http://www.lug-untermain.de/

Reply via email to