Sorry if I don\'t write good, it\'s my first post.
I have a list in one file with the name, id, marks etc of students (see below):
And I want to calculate th
Something like (untested)
awk '{ n = split($6, a, ","); total=0; for (v in a) total += a[v]; print total / n }' main_list