Tweeted twitter.com/#!/StackUnix/status/604247968544350208
2 edited tags
| link
1
source | link

How can I quickly sum all numbers in a file?

Each line contains text and numbers in one column. I need to calculate the sum of the numbers in each row. How can I do that? Thx

example.log contains:

time=31sec
time=192sec
time=18sec
time=543sec

The answer should be 784