Created
November 11, 2020 16:10
-
-
Save ams0/65ddcc154ff7d30ab7ddcca88ef05658 to your computer and use it in GitHub Desktop.
Extract SHA257 from URL
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
#!/bin/bash | |
#Usage: sha256url.sh <URL> | |
url=$1 | |
curl -fLs $url | tee `basename $url` | sha256sum && rm `basename $url` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment