Recusrsively compare directories in Solaris 8

Hello Dear Experts!

I need to compare two directory trees in Solaris 8 (compare the directory trees, and the directory contents - text files and if possible, also binary files).

I was wondering if there is some GUI tool to do that (preferably freeware, or at least shareware).

If not - a good script will also be helpful...

Thanks,
Tal.
travehAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

wesly_chenCommented:
Hi,

-------------
#!/bin/sh

find <path of directory 1> -exec ls -s --format=single-column {} \; > /tmp/dir1.txt
find <path of directory 2> -exec ls -s --format=single-column {} \; > /tmp/dir2.txt

diff /tmp/dir1.txt /tmp/dir2.txt > /tmp/diff.txt
------------------
This script will compare the size of each file and show the difference to /tmp/diff.txt

I use this script to compare our build tree of different branch source codes.
I'm not sure whether it fits your need or not.

Wesly
0
yuzhCommented:
Why not just simply use "dircmp" command,
eg:

dircmp dir1 dir2

man dircmp
to learn more details.

A complicated way to do it:
http:Q_21130862.html

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
yuzhCommented:
You can redirect the output to a file:
    dircmp dir1 dir2 > result.txt
0
travehAuthor Commented:
Thanks!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.