I have two files
MD1 contains md5sums:
5f31caf675f2542a971582442a6625f6 /root/md5filescreator/hash1.txt 4efe4ba4ba9fd45a29a57893906dcd30 /root/md5filescreator/hash2.txt 1364cdba38ec62d7b711319ff60dea01 /root/md5filescreator/hash3.txt
hash3 are three files present in folder
163559001ec29c4bbbbe96344373760a /root/md5filescreators/hash1.txt 4efe4ba4ba9fd45a29a57893906dcd30 /root/md5filescreators/hash2.txt 1364cdba38ec62d7b711319ff60dea01 /root/md5filescreators/hash3.txt
where these files are in folder
I want to compare the checksums in
md5filescreator with the corresponding file's checksum in
The shell script should return OK for files with same checksums and FALSE for those which are not, along with the file names.
Can this be done using
md5sum --check (since it normally checks for any changes in only 1 MD5 file)?