OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / GNU_textutils / original / man1 / sort.1
1 .\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.012.
2 .TH SORT "1" "August 1999" "GNU textutils 2.0" FSF
3 .SH NAME
4 sort \- sort lines of text files
5 .SH SYNOPSIS
6 .B sort
7 [\fIOPTION\fR]... [\fIFILE\fR]...
8 .SH DESCRIPTION
9 .PP
10 .\" Add any additional description here
11 .PP
12 Write sorted concatenation of all FILE(s) to standard output.
13 .TP
14 +POS1 [-POS2]
15 start a key at POS1, end it *before* POS2 (obsolescent)
16 .IP
17 field numbers and character offsets are numbered
18 starting with zero (contrast with the \fB\-k\fR option)
19 .TP
20 \fB\-b\fR
21 ignore leading blanks in sort fields or keys
22 .TP
23 \fB\-c\fR
24 check if given files already sorted, do not sort
25 .TP
26 \fB\-d\fR
27 consider only [a-zA-Z0-9 ] characters in keys
28 .TP
29 \fB\-f\fR
30 fold lower case to upper case characters in keys
31 .TP
32 \fB\-g\fR
33 compare according to general numerical value, imply \fB\-b\fR
34 .TP
35 \fB\-i\fR
36 consider only [\040-\0176] characters in keys
37 .TP
38 \fB\-k\fR POS1[,POS2]
39 start a key at POS1, end it *at* POS2
40 .IP
41 field numbers and character offsets are numbered
42 starting with one (contrast with zero-based +POS form)
43 .TP
44 \fB\-m\fR
45 merge already sorted files, do not sort
46 .TP
47 \fB\-M\fR
48 compare (unknown) < `JAN' < ... < `DEC', imply \fB\-b\fR
49 .TP
50 \fB\-n\fR
51 compare according to string numerical value, imply \fB\-b\fR
52 .TP
53 \fB\-o\fR FILE
54 write result on FILE instead of standard output
55 .TP
56 \fB\-r\fR
57 reverse the result of comparisons
58 .TP
59 \fB\-s\fR
60 stabilize sort by disabling last resort comparison
61 .TP
62 \fB\-t\fR SEP
63 use SEParator instead of non- to whitespace transition
64 .TP
65 \fB\-T\fR DIRECTORY
66 use DIRECTORY for temporary files, not $TMPDIR or /tmp
67 .TP
68 \fB\-u\fR
69 with \fB\-c\fR, check for strict ordering;
70 with \fB\-m\fR, only output the first of an equal sequence
71 .TP
72 \fB\-z\fR
73 end lines with 0 byte, not newline, for find \fB\-print0\fR
74 .TP
75 \fB\-\-help\fR
76 display this help and exit
77 .TP
78 \fB\-\-version\fR
79 output version information and exit
80 .PP
81 POS is F[.C][OPTS], where F is the field number and C the character position
82 in the field, both counted from one with \fB\-k\fR, from zero with the obsolescent
83 form.  OPTS is made up of one or more of Mbdfinr; this effectively disables
84 global \fB\-Mbdfinr\fR settings for that key.  If no key is given, use the entire
85 line as the key.  With no FILE, or when FILE is -, read standard input.
86 .SH "REPORTING BUGS"
87 Report bugs to <bug-textutils@gnu.org>.
88 .SH "SEE ALSO"
89 The full documentation for
90 .B sort
91 is maintained as a Texinfo manual.  If the
92 .B info
93 and
94 .B sort
95 programs are properly installed at your site, the command
96 .IP
97 .B info sort
98 .PP
99 should give you access to the complete manual.
100 .SH COPYRIGHT
101 Copyright \(co 1999 Free Software Foundation, Inc.
102 .br
103 This is free software; see the source for copying conditions.  There is NO
104 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.