I have written this shell script to get some jokes in my daily routine. If you are like me, you probably open several terminal windows during the day.
This script does a few things:
- Gets jokes from the good folks at http://www.randomjoke.com/ (Please support them if you can.)
- It formats the returned joke so it can be printed on the terminal screen
- Since some of the jokes are pretty funny, I decided to add functionally to update the status on Adium/Skype with the returned "oneliners" joke
I've tested this with Snow Leopard and Leopard on the Mac, also Ubuntu 11.10 and Ubuntu 11.04 (The Ubuntu part is only for printing on the terminal not Adium/Skype).
In Linux, with the sed command, line 69 and 73 on the script, remove the set of empty "" double quotes.
If you are not going to use the Adium/Skype functionally, feel free to use the other "Joke Categories" which are pretty funny.
Shout me an email if you have any questions firstname.lastname@example.org