.TH MED 1df "September 2016" "Manual page for med" .SH NAME .B med \- print the median of a list of numbers .SH SYNOPSIS printf '%u\\n' 14 2 10 | .B med .br .B med file .br .B med file1 file2 .SH DESCRIPTION .B med collects all the newline-delimited numbers given as input, and prints the median. It uses the mean of the two median values if the number of records is even. The input must be sorted, and a warning will be issued if it isn't. .SH AUTHOR Tom Ryder