#Awk script that obtains the mean of a the data in field 1 #If the columns are separated with tabs, change the first paran to "\t" BEGIN { FS = " " ns=0; s=0; } { nl++; s=s+$1; } END { print "mean: " s/nl }