|
will this work?
Code:
awk -f temp.awk tempfile
where temp.awk is
Code:
{ for(i=1;i<=NF;i++) { sum[i]+=$i } }
END { for (i in sum) {printf("%f\t", sum[i]/NR) } }
Quote:
|
Btw, the second column should not be 6.5, but 4.33
|
Last edited by ranj@chn; 08-30-2007 at 11:41 AM..
Reason: add comments
|