Hello,
I am trying to average multiple columns simultaneously while skipping the first column.
I am using this awk line to average one column
awk '{sum+=$3} END { print "Average = ",sum/NR}'
But I want to be able to do it for multiple columns while skipping the first column. There are like 500 columns..
my file1 looks something like this:
jay 2 3 4
jon 2 3 4
jur 2 3 4
jam 2 3 4
I want the output to loo like this (which is the average of the file1 while skipping the first column)
2 3 4
thank you