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

9 lines
93 B
Plaintext

{ s = 0
for (i=1; i <= NF; )
if ($(i) ~ /^[0-9]+$/)
s += $(i++)
else
i++
print s
}