#!/bin/bash # Simple script to compare md5 hashes of a 'README' text file against a known # hash value for that file stored in 'md5sum.txt' # export MD5=`md5sum README` export MD5_SERVER=`cat md5sum.txt` # echo them both out just for fun echo $MD5 $MD5_SERVER if [ "$MD5" == "$MD5_SERVER" ]; then echo 'matches!'; fi