• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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