title: How to sum up every 10 lines and calculate average using AWK?
body: <p>I have a file containing N*10 lines, each line consisting of a number. I need to sum up every 10 lines and then print out an average for every such group. I know it's doable in <code>awk</code>, I just don't know how.</p>