awk '{
tot=0
for (i=1;i<=NF;i++) tot+=$i
print "LineNo=" NR "\ttot="tot "\tavg=" tot/12 "data=" $0
gTot+=tot
}
END {
print "Number of Lines =" NR "\n" \
GrandTotal=\t" gTot
}
' yourFile
You want to work on this great awk tutorial to really understand what is going on.
Hope this helps.
P.S. , , , , / + ( -) . , "" ( ), 30 .