xref
: /
freebsd
/
contrib
/
one-true-awk
/
testdir
/
t.incr2
(revision b077aed33b7b6aefca7b17ddb250cf521f938613)
Home
History
Annotate
Line#
Scopes#
Navigate#
Raw
Download
current directory
1
{ s = 0
2
for (i=1; i <= NF; )
3
if ($(i) ~ /^[0-9]+$/)
4
s += $(i++)
5
else
6
i++
7
print s
8
}
9