Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I compare 2 file structures? 1

Status
Not open for further replies.

tonykent

IS-IT--Management
Jun 13, 2002
251
GB
I need to compare a directory structure on one server with what is supposedly the same structure on a second server and check whether (a) the subdirectory structure is identical and (b) that all the files therein are the same (size, date, time, type etc).

Any ideas on how I can do this?
 
Perhaps (from the topmost directory you wish to compare), do a:

find . -exec ls -la {} \; > filea

and on the other machine:

find . -exec ls -la {} \; > fileb

Then ftp one of the files to the other machine and do a:

diff filea fileb

to see any differences.

HTH.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top