Abusing the command line
26th March 2004
If you’re running OS X, try this:
say -v Kathy `curl --silent http://api.technorati.com/getinfo?username=simonwillison | grep ’<inbound' | sed -e 's/ <//' | sed -e 's/inboundblogs>/Simons blog has /’ | sed -e ’s/<\/inboundblogs>/ inbound blogs and /’ | sed -e ’s/inboundlinks>//’ | sed -e ’s/<\/inboundlinks>/ inbound links/’`
Your computer should read out to you my Technorati inbound blogs and inbound links, extracted from the Technorati web API. Parsing XML using sed is a nasty trick I picked up from this O’Reilly article; speaking the output of a command using the ’say’ and the backtick shell operator was my moment of inspiration for the day.
More recent articles
- My AI/LLM predictions for the next 1, 3 and 6 years, for Oxide and Friends - 10th January 2025
- Weeknotes: Starting 2025 a little slow - 4th January 2025
- I still don't think companies serve you ads based on spying through your microphone - 2nd January 2025