Operating System - HP-UX
1833462 Members
2463 Online
110052 Solutions
New Discussion

Comparing the Two Folders

 
SOLVED
Go to solution
Virumandi
Frequent Advisor

Comparing the Two Folders

Hi

Anybosy tell me how can I compare all the files and subdirectories in my one folder with the other..

Regards
Suseendran .A
3 REPLIES 3
James R. Ferguson
Acclaimed Contributor

Re: Comparing the Two Folders

Hi:

See the manpages for 'dircmp'.

Regards!

...JRF...
Peter Godron
Honored Contributor

Re: Comparing the Two Folders

Hi,
depoending on what output format you are after, you can also use diff.
See "man diff"
Steve Post
Trusted Contributor
Solution

Re: Comparing the Two Folders

dircmp -s /dir1 /dir2 > hold
vi hold

The -s ommits stuff that's the same.

dircmp -d /dir1 /dir2 > a_big_file
vi a_big_file

The -d gives diff commands on each and every file with the same name but different contents.

If this just happens to be a Windoze PC, there's a nice utility out there called "Beyond-Compare".