awk/testdir/t.time
Arnold D. Robbins d6c466c367 Extract testdir.
2019-06-23 03:13:57 -06:00

19 lines
184 B
Plaintext

BEGIN {
FS = "-"
}
/sh$/ {
n++
l = length($NF)
s += l
ck %= l
totck += ck
print
}
END {
if (n > 0) {
printf "%d %d %d %fn\n", totck, n, s, s/n
}
else
print "n is zero"
}