Skip to content

Instantly share code, notes, and snippets.

@shanebrowncs
Created July 13, 2015 06:04
Show Gist options
  • Save shanebrowncs/7e6cb3cc57c9b14b3b17 to your computer and use it in GitHub Desktop.
Save shanebrowncs/7e6cb3cc57c9b14b3b17 to your computer and use it in GitHub Desktop.
Checksum tool for *nix
#!/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