Skip to content

Instantly share code, notes, and snippets.

Created March 17, 2014 11:27
Show Gist options
  • Save anonymous/9597661 to your computer and use it in GitHub Desktop.
Save anonymous/9597661 to your computer and use it in GitHub Desktop.
#Bash script to check MD5
if [[ `md5 myfile` == *50afb2c324608e36603cbbb3da0c293a* ]]; then
echo "myfile integrity check"
... open the file ...
else
echo "myfile failed integrity check"
... EXIT ...
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment