Created
January 9, 2015 12:39
-
-
Save hrj/024832c52c700e923127 to your computer and use it in GitHub Desktop.
shortcut for sha1sum and check
This file contains hidden or 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
## call sha1sum and check whether the hash matches | |
## Syntax: sha1check <hash> <filename> | |
## Just copy paste the follow line into ~/.zshrc or ~/.bashrc | |
function sha1check() { echo $1 $2 | sha1sum -c; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is much better than manually eye-balling the hashes.