Created
July 24, 2017 18:37
-
-
Save loisaidasam/9360de9b627b6a45bad74f714f233094 to your computer and use it in GitHub Desktop.
Get the URL of a retriever from dog.ceo
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
#!/bin/bash | |
# Requires `curl` and `jq` | |
# Nice use case: $ open "$(retriever-pic)" | |
curl -Ss "https://dog.ceo/api/breed/retriever/images/random" | jq -r '.message' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment