1 2 3 4 5 6 7 8 9
#!/usr/bin/awk -f { count = count + 1 traj = traj + $2*$4/(1+$5) } END { print traj/count }