![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Search attributes in one structure using the values from another structure | dhanamurthy | High Level Programming | 3 | 03-27-2008 03:37 AM |
| File Comparison | net_shree | Shell Programming and Scripting | 19 | 01-10-2008 08:00 PM |
| file structure | yoavbe | Shell Programming and Scripting | 7 | 10-16-2007 06:27 AM |
| TAR only the file structure | Andysundar | UNIX for Dummies Questions & Answers | 1 | 10-13-2005 04:06 PM |
| Copying a Directory Structure to a new structure | jhansrod | UNIX for Dummies Questions & Answers | 8 | 07-27-2005 06:24 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
File structure comparison
To test server migration, we need to compare files under a directory in source and target servers.
I need to verify if the below two directories on two servers are identical (i.e., contains same directories and files with same size. They may have multiple level sub-directories) //SourceServer/project1/nesteddir //TargetServer/project1/nesteddir Has anyone done a similar stuff? The output of diff command is quite complex to understand. Is there any other simple way? |
|
||||
|
Thanks zaxxon, but the problem is in using diff command. I need a simple output like
The following files are in serverA but no in serverB : The following files names are common to serverA and serverB, but contents differ: Thanks again for your response. |
|
|||||
|
Hi.
If you are on Solaris, there is a script dircmp that may be useful: Code:
dircmp - no version provided for /usr/bin/dircmp. Because both are scripts, you and your colleagues can modify them to suit your purposes ... cheers, drl Last edited by drl; 07-07-2008 at 01:22 PM.. Reason: Make URL a live link. |
| Sponsored Links | ||
|
|