Created
October 7, 2019 20:18
-
-
Save orangecms/558335ec7bbc96334ad9ab86c082da28 to your computer and use it in GitHub Desktop.
Chuck Norris Joke
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/sh | |
# requirements: google_speech, jq, curl, sed | |
URL=https://api.chucknorris.io/jokes/random | |
JSON_PATH='.value' | |
curl -s "$URL" | \ | |
jq "$JSON_PATH" | \ | |
sed "s/'//g" | \ | |
google_speech - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment