cerberus 12
macrumors member
Hi,
i think this should do the trick.
Let me knowCode:curl --silent "http://xml.weather.yahoo.com/forecastrss?p=22903&u=f" | grep -e "Forecast:" -A 2 | tail -n 2 | sed -e 's/<br \/>//' -e 's/<BR \/>//' | sed -E '2n;s/.+\-[ ](.+)\..+:[ ]([0-9]+).+:[ ]([0-9]+)/Today: \1, \2 | \3/' | sed -E '1n;s/[ ]\-[ ](.+)\..+:[ ]([0-9]+).+:[ ]([0-9]+)/\: \1, \2 | \3/'
extra info: the '2n;' makes sure line 2 is not processed. The same goes for the 1n;
Awesome! Exactly what I wanted.
Thanks a lot!