Created
January 18, 2013 19:23
-
-
Save anonymous/4567542 to your computer and use it in GitHub Desktop.
Reads a random Urban Dictionary Definition (Must be run from a Mac OS X Terminal)
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
curl -L www.urbandictionary.com/random.php | awk '$0 ~ /(<title>)|(\<div class\=\"definition\"\>)/{print}' | sed -e 's#<[^>]*>##g' | sed 's/Urban Dictionary\:\(.*\)/\1\, Definition:/' | say |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Update: get rid of annoying """ dictations