Plan 9 from Bell Labs’s /usr/web/sources/contrib/mason/rc/weather

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/bin/rc

if(~ $1 '')
	loc=LOWI.html
if not
	loc=$1

hget http://weather.noaa.gov/weather/current/$loc | 
htmlfmt | 
#sed 's/Weather//g; s/observed//g' |
awk '/Conditions at/, /ob' | 
#sed 's/Conditions at//' | 
awk '/Wind/, /ob' | 
sed 's/^ob//; /^$/d; N;s/\n/:   /'

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.