awk summing coloumn values
I got lines in format
juned_workers 0.03322
juned_workers 0
juned_workers 0.17053
juned_workers 0
juned_workers 0.41322
juned_workers 0
juned_workers 0.16864
juned_workers 0.05603
juned_workers 0
juned_workers 0.15836
The output I required was in format
Row1 juned_workers 0.03322
Row2 juned_workers 0
Row3 juned_workers 0.17053
Row4 juned_workers 0
Row5 juned_workers 0.41322
Row6 juned_workers 0
Row7 juned_workers 0.16864
Row8 juned_workers 0.05603
Row9 juned_workers 0
Row10 juned_workers 0.15836
Total : 1
cat juned.txt | awk '{print "Row"NR,$_} { s += $2 } END { print "Total : ", s} '