One-liner script to fetch current temperature (BRXX0232 is the yahoo weather code for São Paulo):

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