1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.29.
2 .TH SORT "1" "March 2003" "sort (coreutils) 5.0" "User Commands"
4 sort \- sort lines of text files
7 [\fIOPTION\fR]... [\fIFILE\fR]...
9 .\" Add any additional description here
11 Write sorted concatenation of all FILE(s) to standard output.
15 Mandatory arguments to long options are mandatory for short options too.
17 \fB\-b\fR, \fB\-\-ignore\-leading\-blanks\fR ignore leading blanks
19 \fB\-d\fR, \fB\-\-dictionary\-order\fR
20 consider only blanks and alphanumeric characters
22 \fB\-f\fR, \fB\-\-ignore\-case\fR
23 fold lower case to upper case characters
25 \fB\-g\fR, \fB\-\-general\-numeric\-sort\fR
26 compare according to general numerical value
28 \fB\-i\fR, \fB\-\-ignore\-nonprinting\fR
29 consider only printable characters
31 \fB\-M\fR, \fB\-\-month\-sort\fR
32 compare (unknown) < `JAN' < ... < `DEC'
34 \fB\-n\fR, \fB\-\-numeric\-sort\fR
35 compare according to string numerical value
37 \fB\-r\fR, \fB\-\-reverse\fR
38 reverse the result of comparisons
42 \fB\-c\fR, \fB\-\-check\fR
43 check whether input is sorted; do not sort
45 \fB\-k\fR, \fB\-\-key\fR=\fIPOS1[\fR,POS2]
46 start a key at POS1, end it at POS 2 (origin 1)
48 \fB\-m\fR, \fB\-\-merge\fR
49 merge already sorted files; do not sort
51 \fB\-o\fR, \fB\-\-output\fR=\fIFILE\fR
52 write result to FILE instead of standard output
54 \fB\-s\fR, \fB\-\-stable\fR
55 stabilize sort by disabling last-resort comparison
57 \fB\-S\fR, \fB\-\-buffer\-size\fR=\fISIZE\fR
58 use SIZE for main memory buffer
60 \fB\-t\fR, \fB\-\-field\-separator\fR=\fISEP\fR use SEP instead of non- to whitespace transition
62 \fB\-T\fR, \fB\-\-temporary\-directory\fR=\fIDIR\fR
63 use DIR for temporaries, not $TMPDIR or /tmp
64 multiple options specify multiple directories
66 \fB\-u\fR, \fB\-\-unique\fR
67 with \fB\-c\fR: check for strict ordering
69 otherwise: output only the first of an equal run
71 \fB\-z\fR, \fB\-\-zero\-terminated\fR
72 end lines with 0 byte, not newline
75 display this help and exit
78 output version information and exit
80 POS is F[.C][OPTS], where F is the field number and C the character position
81 in the field. OPTS is one or more single-letter ordering options, which
82 override global ordering options for that key. If no key is given, use the
83 entire line as the key.
85 SIZE may be followed by the following multiplicative suffixes:
86 % 1% of memory, b 1, K 1024 (default), and so on for M, G, T, P, E, Z, Y.
88 With no FILE, or when FILE is -, read standard input.
91 The locale specified by the environment affects sort order.
92 Set LC_ALL=C to get the traditional sort order that uses
95 Written by Mike Haertel and Paul Eggert.
97 Report bugs to <bug-coreutils@gnu.org>.
99 Copyright \(co 2003 Free Software Foundation, Inc.
101 This is free software; see the source for copying conditions. There is NO
102 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
104 The full documentation for
106 is maintained as a Texinfo manual. If the
110 programs are properly installed at your site, the command
114 should give you access to the complete manual.