1
0
Fork 0

9 lines
93 B

{ s = 0
for (i=1; i <= NF; )
if ($(i) ~ /^[0-9]+$/)
s += $(i++)
else
i++
print s
}