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