rendered paste body#!/bin/shURL1='http://www.crh.noaa.gov/product.php?site=LSX&product=RWR&format=TXT&issuedby=MO'URL2='http://www.crh.noaa.gov/product.php?site=LSX&product=RWR&format=TXT&issuedby=SJT'URL3='http://www.crh.noaa.gov/product.php?site=LSX&product=RWR&format=TXT&issuedby=IL'URL4='http://www.crh.noaa.gov/product.php?site=LSX&product=RWR&format=TXT&issuedby=AZ'URL5='http://www.crh.noaa.gov/product.php?site=LSX&product=RWR&format=TXT&issuedby=CA'URL6='http://www.crh.noaa.gov/product.php?site=LSX&product=RWR&format=TXT&issuedby=WA'URL7='http://www.crh.noaa.gov/product.php?site=LSX&product=RWR&format=TXT&issuedby=AKQ'URL8='http://www.crh.noaa.gov/product.php?site=LSX&product=RWR&format=TXT&issuedby=BOX'URL9='http://www.crh.noaa.gov/product.php?site=LSX&product=RWR&format=TXT&issuedby=OKX'URL10='http://www.crh.noaa.gov/product.php?site=LSX&product=RWR&format=TXT&issuedby=FL'wget -qO /tmp/weather.KLSX ${URL1}wget -qO /tmp/weather.KSJT ${URL2}wget -qO /tmp/weather.KLOT ${URL3}wget -qO /tmp/weather.KPSR ${URL4}wget -qO /tmp/weather.KLOX ${URL5}wget -qO /tmp/weather.KSEW ${URL6}wget -qO /tmp/weather.KAKQ ${URL7}wget -qO /tmp/weather.KBOX ${URL8}wget -qO /tmp/weather.KOKX ${URL9}wget -qO /tmp/weather.KTBW ${URL10}TIME1=`awk '/ C[S,D]T / {print $0}' /tmp/weather.KLSX | sed 's/^[0-9]00 /0&/'`TIME2=`awk '/ C[S,D]T / {print $0}' /tmp/weather.KSJT | sed 's/^[0-9]00 /0&/'`TIME3=`awk '/ C[S,D]T / {print $0}' /tmp/weather.KLOT | sed 's/^[0-9]00 /0&/'`TIME4=`awk '/ M[S,D]T / {print $0}' /tmp/weather.KPSR | sed 's/^[0-9]00 /0&/'`TIME5=`awk '/ P[S,D]T / {print $0}' /tmp/weather.KLOX | sed 's/^[0-9]00 /0&/'`TIME6=`awk '/ P[S,D]T / {print $0}' /tmp/weather.KSEW | sed 's/^[0-9]00 /0&/'`TIME7=`awk '/ E[S,D]T / {print $0}' /tmp/weather.KAKQ | sed 's/^[0-9]00 /0&/'`TIME8=`awk '/ E[S,D]T / {print $0}' /tmp/weather.KBOX | sed 's/^[0-9]00 /0&/'`TIME9=`awk '/ E[S,D]T / {print $0}' /tmp/weather.KOKX | sed 's/^[0-9]00 /0&/'`TIME10=`awk '/ E[S,D]T / {print $0}' /tmp/weather.KTBW | sed 's/^[0-9]00 /0&/'`STL=`grep "ST\ LOUIS" /tmp/weather.KLSX` #Lambert St. Louis International Airport, St. Louis, MOVIH=`grep "ROLLA" /tmp/weather.KLSX` #Rolla, MOMCI=`grep "KANSAS CTY INT" /tmp/weather.KLSX` #Kansas City, MOSGF=`grep "SPRINGFIELD " /tmp/weather.KLSX` #Springfield, MODFW=`grep "FT WORTH" /tmp/weather.KSJT` #Dallas / Ft. Worth, TXORD=`grep "OHARE" /tmp/weather.KLOT` #Chicato-O'Hare, Chicago, ILSGI=`grep "SPRINGFIELD " /tmp/weather.KLOT` #Springfield, ILPHX=`grep "PHOENIX " /tmp/weather.KPSR` #Phoenix, AZLAX=`grep "L.A. AIRPORT " /tmp/weather.KLOX` #L.A., CASEA=`grep "SEATAC AIRPORT " /tmp/weather.KSEW` #SEATAC, Seattle / Tacoma, WAIAD=`grep "DULLES" /tmp/weather.KAKQ` #Washington D.C DullesDCA=`grep "WASH NATIONAL" /tmp/weather.KAKQ` #Washington D.C. NationalRIC=`grep "RICHMOND" /tmp/weather.KAKQ` #Richmond, VAXSA=`grep "TAPPAHANNOCK" /tmp/weather.KAKQ` #Tappahannock, VAOFP=`grep "HANOVER" /tmp/weather.KAKQ` #Hanover, VANGU=`grep "NORFOLK NAVAL" /tmp/weather.KAKQ` #Newport News, VABCB=`grep "BLACKSBURG" /tmp/weather.KAKQ` #Blacksburg, VAHNC=`grep "CAPE HATTERAS" /tmp/weather.KAKQ` #Hatteras, NCCLT=`grep "CHARLOTTE" /tmp/weather.KAKQ` #Charlotte, NCBWI=`grep "BALTIMORE" /tmp/weather.KAKQ` #Baltimore, MDBOS=`grep "BOSTON " /tmp/weather.KBOX` #Boston, MAACK=`grep "NANTUCKET " /tmp/weather.KBOX` #Nantucket, MABDL=`grep "BRADLEY INTL" /tmp/weather.KBOX` #Windsor Locks, CTMHT=`grep "MANCHESTER NH" /tmp/weather.KBOX` #Manchester, NHJFK=`grep "KENNEDY INTL" /tmp/weather.KOKX` #New York, NYACY=`grep "ATLANTIC CITY" /tmp/weather.KOKX` #Atlantic City, NJPNS=`grep "PENSACOLA NAS" /tmp/weather.KTBW` #Pensacola, FLNIP=`grep "JAX NAS" /tmp/weather.KTBW` #Jacksonville, FLMCO=`grep "ORLANDO INTL" /tmp/weather.KTBW` #Orlando, FLXMR=`grep "CAPE CANAVERAL" /tmp/weather.KTBW` #Cape Canaveral, FLTPA=`grep "TAMPA INTL" /tmp/weather.KTBW` #Tampa, FLEYW=`grep "KEY WEST INTL" /tmp/weather.KTBW` #Key West, FLMIA=`grep "MIAMI" /tmp/weather.KTBW` #Miami, FLecho "TS1: ${TIME1}"echo "STL: ${TIME1} ${STL}"echo "VIH: ${TIME1} ${VIH}"echo "MCI: ${TIME1} ${MCI}"echo "SGF: ${TIME1} ${SGF}"echo "DFW: ${TIME2} ${DFW}"echo "ORD: ${TIME3} ${ORD}"echo "SGI: ${TIME3} ${SGI}"echo "PHX: ${TIME4} ${PHX}"echo "LAX: ${TIME5} ${LAX}"echo "SEA: ${TIME6} ${SEA}"echo "IAD: ${TIME7} ${IAD}"echo "DCA: ${TIME7} ${DCA}"echo "RIC: ${TIME7} ${RIC}"echo "XSA: ${TIME7} ${XSA}"echo "OFP: ${TIME7} ${OFP}"echo "NGU: ${TIME7} ${NGU}"echo "BCB: ${TIME7} ${BCB}"echo "HNC: ${TIME7} ${HNC}"echo "CLT: ${TIME7} ${CLT}"echo "BWI: ${TIME7} ${BWI}"echo "BOS: ${TIME8} ${BOS}"echo "ACK: ${TIME8} ${ACK}"echo "BDL: ${TIME8} ${BDL}"echo "MHT: ${TIME8} ${MHT}"echo "JFK: ${TIME9} ${JFK}"echo "ACY: ${TIME9} ${ACY}"echo "PNS: ${TIME9} ${PNS}"echo "NIP: ${TIME10} ${NIP}"echo "MCO: ${TIME10} ${MCO}"echo "XMR: ${TIME10} ${XMR}"echo "TPA: ${TIME10} ${TPA}"echo "EYW: ${TIME10} ${EYW}"echo "MIA: ${TIME10} ${MIA}"##optionalrm -f /tmp/weather.*