weather: trim garbage from output

front
stanley lieber 2014-01-06 14:55:42 -05:00
parent cae41c18ff
commit ee4ddd77f7
2 changed files with 8 additions and 3 deletions

View File

@ -42,5 +42,5 @@ sed 's/ Press Return to continue, M to return to menu, X to exit: //' |
grep -v 'CITY FORECAST MENU' |
tr -d ' ' |
sed 's/ *$//' |
uniq
uniq |
sed -n '/^VTEC/q; p'

View File

@ -28,8 +28,13 @@ location identifiers known for
The arguments are mutually exclusive and case-insensitive.
If neither is given,
.I air
defaults to location identifier
defaults to the value of the environment variable
.BR $weather ,
or if it is unset,
to the location identifier
.BR ewr ,
designating the Newark, NJ, airport near Bell Labs, Murray Hill.
.SH SOURCE
.B /rc/bin/weather
.SH BUGS
Weather is hopelessly provincial.