aboutsummaryrefslogblamecommitdiff
path: root/man/man1/med.1df
blob: 0cef9e4252f8f5796a6d3827988f03540f0e8a41 (plain) (tree)
1
2
3
4


                                                  
                                        










                        
                                                                         

                                                                             

                               
.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 <tom@sanctum.geek.nz>