I have to calculate the sum of any numbers in the file and print the sum.
A number is defined as any string beginning with a digit 0 through 9 followed by any number of digits 0 through 9.
Alphanumeric strings (strings including both numbers and letters) are not to be included in the summation.
This is the content of the file:
a b cddde ff 1
5
hH five lll 0
l 10
99 abcd7
9kk
0
So the answer would be 115 in this case.