From 6d21607b8c4ee6b85db3380b684ca0fb83f5be67 Mon Sep 17 00:00:00 2001 From: bluesaxman Date: Wed, 16 Feb 2022 16:35:20 -0700 Subject: [PATCH] questionable commit from work laptop --- weather.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/weather.sh b/weather.sh index b160158..90313de 100755 --- a/weather.sh +++ b/weather.sh @@ -95,5 +95,9 @@ else {$type=$type."...";} my $loc = substr(($weather[4] or "?????"), 0, 5); -print $loc." - ".$type."  ".$temp."  ".$wdir." ".$wind."mph\n\n"; +my $format = '%5.5s - %5.5s  %03dC  %s %03dmph'; +printf( $format, $loc, $type, $temp, $wdir, $wind); +print "\n"; +printf( $format, $loc, $type, $temp, $wdir, $wind); +print "\n"; print $color."\n";