Fun curl command example – retrieve a random geek joke from command line

The below command works fine on my Ubuntu, it sends back a random cheesy and geeky joke that even I myself sometimes do not get:

curl -s https://official-joke-api.appspot.com/jokes/programming/random | jq '.[0] | .setup, .punchline'

You might need to apt-install jq package as well. Typical output:

Also, there is the Chuck Norris joke command line:


curl -s https://api.chucknorris.io/jokes/random | jq -r '.value'


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *