cdd v:\
setlocal
copy /q "http://w1.weather.gov/data/obhistory/KSYR.html" h:\temp\ksyr.tmp
tpipe /input=h:\temp\ksyr.tmp /output=h:\temp\temps.tmp /grep=3,0,0,1,0,0,0,0,"right.*left" ^
/replace=4,1,0,1,0,0,0,0,0,".*([0-9][0-9]:[0-9][0-9]).*td.(-*[0-9]*)..td..td.*[0-9]*..td.$","$1 $2" ^
/head=0,0,24
unset /q temps
do line in @h:\temp\temps.tmp
set hour=%@left[2,%@word[0,%line]]
echo %@word[0,%line]^t%@word[1,%line]
set %@word[0,%line]=%@word[1,%line]
set temps=%temps %@word[1,%line]
enddo
set av=%@avg[%temps=2]
echo Average: %av