remove scientific cal from awk sum

Hell friends,

I wrote a script gets the summation of particular column using awk.
The awk output is given in scientific notation. How do I convert the scientific notation to normal.

My awk syntax : awk '{sum += $2} END { printf sum }' temprep.txt

Out put is like 1.5365e+07
I want it as 15365000

Please give me a suggestion.

Thanks
Mahesh



exactly,
awk '{sum += $2} END { printf ("%8d\n", sum) }' temprep.txt

你可能感兴趣的:(fun)