Created
July 13, 2015 06:04
-
-
Save shanebrowncs/7e6cb3cc57c9b14b3b17 to your computer and use it in GitHub Desktop.
Checksum tool for *nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ -z $1 ] | |
then | |
echo "No Files Given" && exit 1 | |
fi | |
echo "MD5:" `md5sum $1`"\r\n" | |
echo "SHA1:" `sha1sum $1`"\r\n" | |
echo "SHA256:" `sha256sum $1`"\r\n" | |
exit $? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment