Skip to content

Instantly share code, notes, and snippets.

@ams0
Created November 11, 2020 16:10
Show Gist options
  • Save ams0/65ddcc154ff7d30ab7ddcca88ef05658 to your computer and use it in GitHub Desktop.
Save ams0/65ddcc154ff7d30ab7ddcca88ef05658 to your computer and use it in GitHub Desktop.
Extract SHA257 from URL
#!/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