awk/testdir/t.time

19 lines
184 B
Plaintext
Raw Normal View History

2019-06-23 05:13:57 -04:00
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"
}