From acdd4d1b20cdb87edb69bf2428ff3be16d34b697 Mon Sep 17 00:00:00 2001 From: elena Date: Tue, 26 Sep 2017 12:23:23 +0300 Subject: [PATCH] uploaded another weather script --- Scripts/accuweather.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 Scripts/accuweather.sh diff --git a/Scripts/accuweather.sh b/Scripts/accuweather.sh new file mode 100755 index 0000000..6ad3f48 --- /dev/null +++ b/Scripts/accuweather.sh @@ -0,0 +1,4 @@ +#!/bin/bash +weatherURL='http://www.accuweather.com/en/us/buffalo-ny/78701/weather-forecast/351193' +TEMP="$(wget -q -O- "$weatherURL" | awk -F\' '/acm_RecentLocationsCarousel\.push/{print $12"°F" }'| head -1)" +echo " $TEMP" \ No newline at end of file