>_ IzzyLab

Topic breakdown

The average of a column of numbers is a typical aggregate metric over a raw log: you need the sum of all values and their count, then a division. Both are conveniently accumulated in a single awk pass: a sum accumulator plus the built-in variable NR as the line counter, with the division and output themselves in the END block. Rounding down is given by the int() function (it drops the fractional part), unlike mathematical rounding printf "%.0f", which could go up.

What's checked

  1. Average computed correctly

What it looks like