Last active
July 22, 2017 17:02
-
-
Save codebox/76aabe9391daaadd9662736547463ab0 to your computer and use it in GitHub Desktop.
OSX shell command to read aloud the content of a web page
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
URL=http://pun.me/pages/dad-jokes.php | |
curl -L $URL | tr '\n' ' ' | egrep -o '<(title|h\d|p|li)( [^>]*>|>).*?</\1>' | sed -E 's/<[^>]*>//g' | say |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment