From: Quanah Gibson-Mount Date: Sat, 13 Dec 2003 00:22:22 +0000 (+0000) Subject: Print out partition data in a nice format X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=f2bfc85c6612a4e89b10791a421f21e6b769ceab;p=packages%2Fa%2Fafs-monitor.git Print out partition data in a nice format --- diff --git a/check_afsspace b/check_afsspace index 6253988..5fbd123 100755 --- a/check_afsspace +++ b/check_afsspace @@ -56,5 +56,11 @@ if (@warning) { print @warning; exit 1; } -print "@infos\n"; +foreach $l (@infos) { + chomp($l); + $l =~ s/Free space on partition //; + $l =~ s/ K blocks out of total /\//; + print "$l "; +} +print "\n"; exit 0;