From ee4ddd77f70132904f3c9cedb38540b336c68f70 Mon Sep 17 00:00:00 2001 From: stanley lieber Date: Mon, 6 Jan 2014 14:55:42 -0500 Subject: [PATCH] weather: trim garbage from output --- rc/bin/weather | 4 ++-- 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.