My input file is as below
file name: marksheet
No Name Sub1 Sub2 Sub3
1 Atul 89 56 78
2 Jay 56 88 75
3 Mariya 85 75 56
4 Nita 90 88 95
Now i want to perform total and percentage. So i performed below command
awk 'total=$3+$4+$5, per=total/3 {print total "\t" per}' marksheet
it gives output of total and column. as
223 74.3333
219 73
216 72
273 91
So now i want to add above column( output) in file marksheet. So if it is possible then how to perform the command using awk.