Search Results

Search: Posts Made By: valokv
2,527
Posted By valokv
Thanks Scottn and Franklin, That printf...
Thanks Scottn and Franklin,

That printf command worked and now i am getting the proper value :

# awk -F, '{s+=$7}END{printf( "%f\n", s)}' input.txt

5299354.810000


Thanks for the help...
2,527
Posted By valokv
problem while adding column values in awk
Hi,

I have a file "input.txt" with the following content :

5312,0,,,1,8,141.2,20090727
3714,0,,,1,8,285.87,20090727
5426,0,,,1,8,3.9,20090727
3871,0,,,1,8,30.4,20090727...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 04:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy