What's the quickest way to get the mean of a set of numbers from the command line?
average, command-line, mean, statistics
Solution
Awk
awk '{total += $1; count++ } END {print total/count}'
Problem
Using any tools which you would expect to find on a nix system (in fact, if you want, msdos is also fine too), what is the easiest/fastest way to calculate the mean of a set of numbers, assuming you have them one per line in a stream or file?