awk/testdir/t.avg

6 lines
80 B
Plaintext
Raw Normal View History

2019-06-23 05:13:57 -04:00
{s = s + $1; c = c + 1}
END {
print "sum=", s, " count=", c
print "avg=", s/c
}