YORIK’S COFFEE CORNER

You are currently viewing a single post of this guestblog.

Click here to go back the complete page. I would be glad to hear your comments, so don’t hesitate to leave me your feedback below. It will appear on the main guestblog page.


in categories  linux  opensource  permalink:  189   posted on 09.12.2012 19:24
From Yorik
One-liner script to fetch current temperature (BRXX0232 is the yahoo weather code for São Paulo):

curl --silent "http://xml.weather.yahoo.com/forecastrss?p=BRXX0232&u=c" | 
grep -E 'temp=' | cut -d "=" -f3 | head -c 3 | tail -c 2

First and foremost, your name:

And your message:

To publish it, just press this ...