Skip to content

A shell script to generate a gravatar avatar or profile url for an email address.

Notifications You must be signed in to change notification settings

dlamblin/gravatar-sh

Repository files navigation

Gravatar urls from the shell

A shell script to take an email address and turn it into a gravatar profile url or a gravatar avatar url.

This was written on Mac OS X 10.10.4 and assumes there is a command md5 in your path.

Example useage

To echo both urls to the terminal:

$ ./gravatar.sh [email protected]
https://www.gravatar.com/avatar/e70d89f50bdd84da5892f083c5692372
https://www.gravatar.com/profile/e70d89f50bdd84da5892f083c5692372
$

To copy the profile url into the clipboard for pasting somewhere:

$ ./gravatar.sh [email protected] pbcopy
$ pbpaste 
https://www.gravatar.com/profile/e70d89f50bdd84da5892f083c5692372
$

Opens the gravatar and the profile links in your default browser.

$ ./gravatar.sh [email protected] xargs open

About

A shell script to generate a gravatar avatar or profile url for an email address.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages