Created
February 21, 2017 10:04
-
-
Save Wooder/61b918c4ab6b7640b9feac5d021876ab to your computer and use it in GitHub Desktop.
Loads a gravatar image by email address. e.G.: ./load_gravatar_image.sh test@email.com
This file contains 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
MD5_HASH=`md5 -s "$1" | awk -F"=" '{print $2}' | xargs` | |
wget -O $1.jpg https://www.gravatar.com/avatar/$MD5_HASH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment