aboutsummaryrefslogblamecommitdiff
path: root/man/man1/mode.1df
blob: 5b675fd3467511273b5ccf2ce37d38ae00f44a93 (plain) (tree)
1
2
3
4


                                                    
                                      










                         
                                                                         
                                                                             

                                                                             

                               
.TH MODE 1df "September 2016" "Manual page for mode"
.SH NAME
.B mode
\- print the mode of a list of numbers
.SH SYNOPSIS
printf '%u\\n' 2 35 3 8 |
.B mode
.br
.B mode
file
.br
.B mode
file1 file2
.SH DESCRIPTION
.B mode
collects all the newline-delimited numbers given as input, and prints the
mode. If two values have the same frequency (i.e. a multimodal distribution),
it will print one of them, but which one depends on whether your awk(1) sorts
array indexes...
.SH AUTHOR
Tom Ryder <tom@sanctum.geek.nz>