#!/bin/sh

wget http://weather.yahoo.com/forecast/USME0177.html

sed -e 's/<[^>]*>//g' USME0177.html > temp.txt

grep -A 30 "Current conditions" temp.txt > temp1.txt

sed -e 's/&/ /g' temp1.txt > temp2.txt

sed -e 's/Current conditions/Harrison weather/' temp2.txt > temp3.txt


weather=$(sed '/^$/d' temp3.txt) # > weather.txt

rm /root/temp*.txt
rm /root/USME0177.html

gxmessage "$weather"


