xref: /freebsd/contrib/one-true-awk/testdir/t.incr2 (revision 02e9120893770924227138ba49df1edb3896112a)
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