Sometimes I have a file containing in some column a list of numbers, of which I want to have some basic numbers calculated, like sum, average, and standard deviation. Here are some bash "one liners", finishing with a grand finale doing all together. Assume our data is in the 4th column of file $file.
Note I say bash here, but actually it works in any "normal" shell since it just makes use of binaries file, paste, bc, sort and awk.
cut -f4 $file | paste -sd+ - | bc