I have a list of numbers in a file, one per line. How can I get the minimum, maximum, *median* and *average* values? I want to use the results in a bash script. Although my immediate situation is for integers, a solution for floating-point numbers would be useful down the line, but a simple integer method is fine.