Advertisement
esalant

Untitled

May 29th, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. pi@raspberrypi:~/weather $ cat weather
  2. #!/bin/sh
  3.  
  4. read -p "Enter your zip code : " zip
  5.  
  6. 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'`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement