esalant May 29th, 2018 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- pi@raspberrypi:~/weather $ cat weather
- read -p "Enter your zip code : " zip
- echo `curl -s "http://rss.accuweather.com/rss/liveweather_rss.asp?metric=2&locCode=$zip" | sed -n '/Currently:/ s/.*: \(.*\): \([0-9]*\)\([CF]\).*/\2°\3, \1/p'`
RAW Paste Data