weather: trim garbage from output
This commit is contained in:
parent
cae41c18ff
commit
ee4ddd77f7
2 changed files with 8 additions and 3 deletions
|
@ -42,5 +42,5 @@ sed 's/ Press Return to continue, M to return to menu, X to exit: //' |
|
||||||
grep -v 'CITY FORECAST MENU' |
|
grep -v 'CITY FORECAST MENU' |
|
||||||
tr -d '
' |
|
tr -d '
' |
|
||||||
sed 's/ *$//' |
|
sed 's/ *$//' |
|
||||||
uniq
|
uniq |
|
||||||
|
sed -n '/^VTEC/q; p'
|
||||||
|
|
|
@ -28,8 +28,13 @@ location identifiers known for
|
||||||
The arguments are mutually exclusive and case-insensitive.
|
The arguments are mutually exclusive and case-insensitive.
|
||||||
If neither is given,
|
If neither is given,
|
||||||
.I air
|
.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 ,
|
.BR ewr ,
|
||||||
designating the Newark, NJ, airport near Bell Labs, Murray Hill.
|
designating the Newark, NJ, airport near Bell Labs, Murray Hill.
|
||||||
.SH SOURCE
|
.SH SOURCE
|
||||||
.B /rc/bin/weather
|
.B /rc/bin/weather
|
||||||
|
.SH BUGS
|
||||||
|
Weather is hopelessly provincial.
|
||||||
|
|
Loading…
Reference in a new issue