Server!/Horror! I have a magnet and I don't mind using it!

Awk min/max/avg

#!/usr/bin/awk -f
BEGIN
{
 minimum=0;
 maximum=0;
 sum=0;
}
{
 if($3>maximum)
 {
  maximum=$3;
 }
 if($3<minimum)
 {
  minimum=$3;
 }
 sum+=$3;
}
END
{
 print "Average = ",sum/NR;
 print "Max = ",maximum;
 print "Min = ",minimum;
}

Generated: 2017-11-02 10:20:47 +0100