Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2014
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.20 KB | None | 0 0
  1. #!/bin/sh
  2.  URL1='http://www.accuweather.com/de/de/berlin/10178/daily-weather-forecast/174551?day=1'
  3.  URL2='http://www.accuweather.com/de/de/berlin/10178/daily-weather-forecast/174551?day=2'
  4.  URL3='http://www.accuweather.com/de/de/berlin/10178/daily-weather-forecast/174551?day=3'
  5.  URL4='http://www.accuweather.com/de/de/berlin/10178/daily-weather-forecast/174551?day=4'
  6.  URL5='http://www.accuweather.com/de/de/berlin/10178/daily-weather-forecast/174551?day=5'
  7.  wget -q -O- "$URL1" | awk -F\' '/acm_RecentLocationsCarousel\.push/{print "Heute " $2": "$16", "$12"°C gefühlt: "$14"°C" }'| head -1  >/var/tmp/weather.cur
  8.  wget -q -O- "$URL2" | awk -F\' '/acm_RecentLocationsCarousel\.push/{print $2": "$16", "$12"°C gefühlt: "$14"°C" }'| head -1 >>/var/tmp/weather.cur
  9.  wget -q -O- "$URL3" | awk -F\' '/acm_RecentLocationsCarousel\.push/{print $2": "$16", "$12"°C gefühlt: "$14"°C" }'| head -1 >>/var/tmp/weather.cur
  10.  wget -q -O- "$URL4" | awk -F\' '/acm_RecentLocationsCarousel\.push/{print $2": "$16", "$12"°C gefühlt: "$14"°C" }'| head -1 >>/var/tmp/weather.cur
  11.  wget -q -O- "$URL5" | awk -F\' '/acm_RecentLocationsCarousel\.push/{print $2": "$16", "$12"°C gefühlt: "$14"°C" }'| head -1 >>/var/tmp/weather.cur
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement