bc, negative values and "total" (whit swapped -)

Hi All,

I need to sum numbers, in bash, input is this:

10.00
12.33
14.99
134.00
1211.09
130.01-      <--- it is negative, but "-" is at the end..
901.99
10.34-        <--- another negative number...

bc -l is giving me error so only solution to my problem would be to swap - to the front of the number, right? How could I achieve that?

Thank you in advance!
Many thanks
Chris

nawk '/.*-/{$0=0-$0}{s+=$0}END{print s}' myFile

Sed solution..

sed 's/^\(.*\)-\s*$/-\1/' t1

Also, place the input using CODE tags.

Thank you everyone!

As always, top-notch help!

Sorry for not using TAGS:(

Cheers
Chris