github.com/benhoyt/goawk@v1.8.1/testdata/t.avg (about) 1 {s = s + $1; c = c + 1} 2 END { 3 print "sum=", s, " count=", c 4 print "avg=", s/c 5 }