Last active
January 1, 2020 14:24
-
-
Save pleasemarkdarkly/ea5116f4f7248cdee6eccec3e9a2e567 to your computer and use it in GitHub Desktop.
Bash script to parse Chuck Norris jokes for presentation in terminal. I use it for shoving into cowsay.
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 | |
curl -s http://api.icndb.com/jokes/random/ | python -c 'import sys, json; print "\n"+json.load(sys.stdin)["value"]["joke"]+"\n\n"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment