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";