BEGIN {OFS="\t" } {Xsum += $2 Ysum += $3 print Xsum,Ysum}