Shell Script to compare folders,Sub-Folders and Sub-Sub-Folders
Dear All,
I am trying to built a shell script which will compare all the folders like directories,sub-dir and sub-sub-Dir between two servers. Can it be possible ? If yes, Could you please give some idea which will help me a lot . Thanks. :confused: |
Quote:
what are you trying to accomplish? It could be that you could use rsync for another utility to do what you want to do. |
Quote:
Thanks for your quick response, i want to compare files from two servers folders ,sub-folders,sub-sub-folders and so on ... i searched through out the forum but i am not getting any satisfactory answer . Need your help to achieve the above . Thanks. |
diff command will show two directory's difference.
[root@~]diff dir1 dir2 |
Quote:
http://tldp.org/LDP/abs/html/ The diff command can do some parts of what you want, but again, you're not telling us what your goal is. If this is homework, post where you're stuck. If it's for a production environment, there are other tools you can use to do this. |
Quote:
Am trying to achieve like for Example. Code:
Code:
line=$1 |
Quote:
|
Quote:
|
Quote:
|
All times are GMT -5. The time now is 02:26 AM. |