Execute the following script to get md5 sums of multiple files in dir /VMDKS/lunetikk/
#!/bin/bash SYSTEM=lunetikk touch /tmp/md5sums-$SYSTEM.txt for file in /VMDKS/$SYSTEM/* do md5sum $file >> /tmp/md5sums-$SYSTEM.txt done
output (not really lunetikk.de…)
7a3f04fee80895e2f7bf1e07405c06e9 /VMDKS/lunetikk/lunetikk-flat.vmdk c988730d9341482ae23b6101e4bed99c /VMDKS/lunetikk/lunetikk.vmdk 95e2b048c949b3be004bfa5a60e21ee4 /VMDKS/lunetikk/lunetikk_1-flat.vmdk f90afb45f17f43bc2ac90524c008a5cc /VMDKS/lunetikk/lunetikk_1.vmdk 5bbc8377dc9e1729867be20619d9df0f /VMDKS/lunetikk/lunetikk_2-flat.vmdk a634886021a95d4dad858f5a397d6302 /VMDKS/lunetikk/lunetikk_2.vmdk
Check files against the created .txt-file
md5sums -c /tmp/md5sums-lunetikk.txt
output
/VMDKS/lunetikk/lunetikk-flat.vmdk: OK /VMDKS/lunetikk/lunetikk.vmdk: OK /VMDKS/lunetikk/lunetikk_1-flat.vmdk: OK /VMDKS/lunetikk/lunetikk_1.vmdk: OK /VMDKS/lunetikk/lunetikk_2-flat.vmdk: OK /VMDKS/lunetikk/lunetikk_2.vmdk: OK