aboutsummaryrefslogtreecommitdiff
path: root/man/man1/med.1df
blob: 0fab7db2f61faa67b608a6e540ea9af48f121b75 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.TH MED 1df "September 2016" "Manual page for med"
.SH NAME
.B med
\- print the med of a list of integers
.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 integers given as input, and prints the
median. It uses the floor of 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>