Read a file line by line with condition in shell script : <p>i have a file errorgot.log</p>

<pre><code>1 23 23
2 22 42
3 12 2
4 5 26
5 14 45
</code></pre>

<p>i want to sum all the third number in a line with a shell script.
for the example, 23 + 42 + 2 + 26 + 45 = 138</p>

<p>thanks bfore</p>
