Compare checksum of files between two servers and report mismatch
问题 I have to compare checksum of all files in /primary and /secondary folders in machineA with files in this folder /bat/snap/ which is in remote server machineB . The remote server will have lots of files along with the files we have in machineA . If there is any mismatch in checksum then I want to report all those files that have issues in machineA with full path and exit with non zero status code. If everything is matching then exit zero. I wrote one command (not sure whether there is any