From: Heikki Levanto Date: Fri, 3 May 2013 08:54:47 +0000 (+0200) Subject: Sort hosts in aptcheck X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=68b66ad9c0d64c8d0958b871db445b0b4c03d711;p=git-tools-moved-to-github.git Sort hosts in aptcheck --- diff --git a/aptcheck/aptcheck.pl b/aptcheck/aptcheck.pl index cac9422..d49e41b 100755 --- a/aptcheck/aptcheck.pl +++ b/aptcheck/aptcheck.pl @@ -149,7 +149,8 @@ if ( -f $datefilename ) { my $table = "\n"; -for my $hline ( split("\n",$hostlist) ) { +#for my $hline ( split("\n",$hostlist) ) { +for my $hline ( sort( split("\n",$hostlist) ) ) { next unless ( $hline =~ /\/([a-z0-9-]+)\.cfg$/ ); my $H = $1; next if ($H =~ /^commands/ );