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