s+=(a[++i]=$2)-a[i-5]{OFMT=$0" Average: %.1f"}$0=s/(i<5?i:5)
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page