# This prints the sum of the second column. # Input: ########################################### # 49.000 0.338 # 149.000 0.030 # 249.000 0.019 ########################################### { if (NR==1) { sum = 0; } first = $1; sum = sum + $2; print first, sum; }