A shell script which shows differences in multiple files in two different directories and also possibly create an output file including where all mismatches were found.
Condition
File dir1/file1 compare only with dir2/file1 (similarly for other files - file2 compare with file2)
If any changes found: status should be "Miss-match FOUND in file file1 for example" and same thing should do for all other files as well and write a all of the results into a one file
Thanks in advance
Use the diff command. Using the
-rflag you can compare folders recursively:The output will be in a format which the
patchcommand understands. You can save it in a file and apply those changes todir1using