diff options
author | stanley lieber <stanley.lieber@gmail.com> | 2014-01-06 14:55:42 -0500 |
---|---|---|
committer | stanley lieber <stanley.lieber@gmail.com> | 2014-01-06 14:55:42 -0500 |
commit | ee4ddd77f70132904f3c9cedb38540b336c68f70 (patch) | |
tree | 5c4b0b9c9acd6d80a33a71c19d3cb872d70c3fd5 | |
parent | cae41c18ff33f0dc1179fda611fb46c21b5fc6e3 (diff) |
weather: trim garbage from output
-rwxr-xr-x | rc/bin/weather | 4 | ||||
-rw-r--r-- | sys/man/1/weather | 7 |
2 files changed, 8 insertions, 3 deletions
diff --git a/rc/bin/weather b/rc/bin/weather index 5261495bf..0f3f0a091 100755 --- a/rc/bin/weather +++ b/rc/bin/weather @@ -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' diff --git a/sys/man/1/weather b/sys/man/1/weather index a4ccbd88c..a40b1f12b 100644 --- a/sys/man/1/weather +++ b/sys/man/1/weather @@ -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. |