Reply
Hi ,
Thanks. We are also using the awk for arthitmatic operation . But we are not getting exepected result. I tried with your code as well.
$ awk ' {total+=$0} END { print total} ' hash_column_wrong.txt
2.15638e+09
I got the result in expontial format. But I need the result with all the digits. How to achive this?. Then second method which you shown using the bc calculator is taking more time to complte. So I think awk is the best method. As of now , I am getting result as 2.15638e+09 . but I need to get result like 2156380000 . Please help me.
Regards,
Thambi
|