Skip to content

Instantly share code, notes, and snippets.

@rastating
Created July 23, 2017 21:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rastating/52a0e81e12ee1ce2d6b5a4b02720997e to your computer and use it in GitHub Desktop.
Save rastating/52a0e81e12ee1ce2d6b5a4b02720997e to your computer and use it in GitHub Desktop.
Helper script for validating files against SHA1 checksums
#!/bin/bash
if [ "$#" -ne 2 ]
then
echo "Usage: sha1check [filename] [checksum]"
exit 1
fi
echo "$2 *$1" | sha1sum -c -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment