Sponsored Content
Top Forums UNIX for Dummies Questions & Answers compare two directories after rysnc Post 302548611 by tkhan9 on Thursday 18th of August 2011 10:45:20 PM
Old 08-18-2011
compare two directories after rysnc

Hi,
I ran rsync command to copy all files, directories and subdirectories from /home/dir1 to another Target directory /home/dir2

Now I want to make sure everything is copied over without missing anything. Is there a command I can run which will compare both directories and check to see if I am not missing anything?

Thanks
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Compare 2 Directories

Hi again, I have went through the forum and did not find any threads to how we can compare two directories. I am stuck in my script to do some logging. The scenario is as followed: 1) 3rd party program for logging alarms (I will ask my vendor on how to write the script to automate the... (2 Replies)
Discussion started by: seongyin
2 Replies

2. UNIX for Dummies Questions & Answers

Compare 2 directoriesand it's sub directories

Hello, How can I compare the files in the directory and it's sub-directory with similar filename and list all the ones which are not same in content rather then comparing each files specially usfull when there are couple files in a directory. Thanks, Ani (0 Replies)
Discussion started by: anikanch
0 Replies

3. Shell Programming and Scripting

Compare files from two directories

HI, i want to compare one file from one directory to many files in other directory. means in my /DIR/20070930/b/STG* directory i have only one file and in /DIR/20070930/a/STG* directory i have many files. so i want to check the name of that files should be present in other directory or not ... (2 Replies)
Discussion started by: ravi214u
2 Replies

4. Shell Programming and Scripting

How to compare two directories...

Hi, I have a variable which stores the path of a directory ,as a=home/t1/o2o/root I have other variable say b which stores same path ..i.e b= home/t1/o2o/root I want to compare these variables and then execute a script... I tried using if as if then echo "variables are equal" fi... (2 Replies)
Discussion started by: Taranjeet Singh
2 Replies

5. UNIX for Dummies Questions & Answers

compare all files under directories

Hello I am very new to Unix. I am actually using the C shell to write a program that will compare all the files in the directory and subdirectores and print out the ones that are identical, I am assuming identical by name or text Thank you (2 Replies)
Discussion started by: ga.miami56
2 Replies

6. UNIX for Dummies Questions & Answers

rysnc

hi I have a rsync working between two servers but i would like to write this to a daily log on completion to a area on one of the servers. This way i can check if sync was successful easily. Rsync i am running is as follows rsync -aWv -e ssh --stats progress --delete --ignore-errors... (2 Replies)
Discussion started by: treds
2 Replies

7. UNIX for Dummies Questions & Answers

How to compare files in 2 directories?

Hi, I want to compare the content of 2 directories and list down both the duplicate and unique files from each directory. Tried to use diff but but not able to achieve the result. For example, DirA FileX FileY FileZ DirB FileY The desired outcome is Duplication: FileY... (1 Reply)
Discussion started by: Andre_2008
1 Replies

8. Shell Programming and Scripting

Compare two directories in different servers

I have a requirement. I need to write a shell script which will compare two directories residing in two different servers (SERVER A and SERVER B) and list out the discrepancies if found any. Script will be running from SERVER A. Please help. (2 Replies)
Discussion started by: freakysk
2 Replies

9. Shell Programming and Scripting

how to compare two files in different directories

Hi all , Can any one give me the solution for below query. I have two files . firstfile: xyz123 abc234 text2456 secondfile (\home\test) xyz123:ram ab34:scrit text2456:maven After you compare the ouput should the the common items in both files (2 Replies)
Discussion started by: sravan008
2 Replies

10. Shell Programming and Scripting

Compare files of 2 directories

Hi all, I have 2 directories dir1 and dir2 which contains many xml files. I need to compare files of dir1 with that of dir2 and if they match, I need to cut it from dir1 and paste it in dir2. I need to do this thru scripts. I'm currently investigating on the diff command. Please help me write... (6 Replies)
Discussion started by: frum
6 Replies
opendiff(1)						    BSD General Commands Manual 					       opendiff(1)

NAME
opendiff -- Use FileMerge to graphically compare or merge file or directories SYNOPSIS
opendiff file1 file2 [-ancestor ancestorFile] [-merge mergeFile] opendiff dir1 dir2 [-ancestor ancestorDirectory] [-merge mergeDirectory] DESCRIPTION
opendiff is a command line utility that provides a convenient way to launch the FileMerge application from Terminal to graphically compare files or directories. If FileMerge is already running, opendiff will connect to that running instance for the new comparison. opendiff exits immediately after the comparison request has been sent to FileMerge. opendiff and FileMerge can be used to compare two files file1 and file2 or to compare two directories dir1 and dir2. If the -ancestor flag is given, FileMerge will compare the two files or directories to a common ancestor. This is useful if two people inde- pendently modify copies of a single original file or directory. FileMerge lets you merge two files or directories together to create a third file or directory. To see the contents of a merged file, drag the splitter bar at the bottom of FileMerge's file comparison window. The contents of the merged file can be directly edited within File- Merge. After editing, the merged file can be saved to the file (or into the directory) specified with the Fl merge flag. If a destination is not specified with the -merge flag, FileMerge will ask for a destination file or directory when you try to save a merged file. For further information, please consult the Help information available from the FileMerge application. FILES
/Developer/Applications/Utilities/FileMerge.app opendiff and FileMerge are installed as part of the Mac OS X Developer Tools. SEE ALSO
diff(1), diff3(1), cmp(1) Mac OS X August 3, 2004 Mac OS X
All times are GMT -4. The time now is 10:25 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy