SHARE
TWEET

Untitled

esalant May 29th, 2018 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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'`
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top