File: sort.1

package info (click to toggle)
manpages-ja 0.5.0.0.20061115-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 19,788 kB
  • ctags: 4
  • sloc: sh: 13,215; perl: 157; makefile: 117
file content (245 lines) | stat: -rw-r--r-- 7,992 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
.\"    This file documents the GNU text utilities.
.\" 
.\"    Copyright (C) 1994, 95, 96 Free Software Foundation, Inc.
.\" 
.\"    Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\"  
.\"    Permission is granted to copy and distribute modified versions of
.\" this manual under the conditions for verbatim copying, provided that
.\" the entire resulting derived work is distributed under the terms of a
.\" permission notice identical to this one.
.\"  
.\"    Permission is granted to copy and distribute translations of this
.\" manual into another language, under the above conditions for modified
.\" versions, except that this permission notice may be stated in a
.\" translation approved by the Foundation.
.\" 
.\" Japanese Version Copyright (c) 1997 NAKANO Takeo all rights reserved.
.\" Translated Mon Mar 9 1998 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
.\"
.TH SORT 1 "GNU Text Utilities" "FSF" \" -*- nroff -*-
.SH ̾
sort \- ƥȥեιԤ򥽡Ȥ
.SH 
.B sort
[\-cmus] [\-t separator] [\-o output-file] [\-T tempdir] [\-bdfiMnr]
[+POS1 [\-POS2]] [\-k POS1[,POS2]] [file...]
.br
.B sort
{\-\-help,\-\-version}
.SH 
ʸϤ⤦ƥʥ󥹤ƤʤΤǡΡԴ
ʲǽ롣ߤ texinfo ʸʾȤʤäƤ롣
.PP
Υޥ˥奢ڡ GNU 
.B sort
ˤĤƵҤΤǤ롣
.B sort
ϻꤵ줿եιԤ򥽡ȡޡӤ롣ե̾Ϳ
ʤäɸϤɤ߹ࡣե̾ `-' ɸϤ̣
롣ǥեȤǤ
.B sort
Ϸ̤ɸϤ˽񤭽Ф
.PP
.B sort
ˤ 3 ư⡼ɤ롣 (ǥեȤư)ޡ
ȤƤ뤫ΥåǤ롣ʲΥץư⡼ɤѹ롣
.TP
.I \-c
Ϳ줿ե뤬Ǥ˥ȤƤ뤫ɤå롣
ȤƤʤΤäϡ顼åɽͤ 1 
֤
.TP
.I \-m
Ϳ줿ե뷲ޤȤƥȤƥޡ롣ϥեϻ
ˤ줾쥽ȤƤʤФʤʤޡưǤϤʤư
ʣեˤޤȤƹԤȤǽǤ롣ޡư󶡤
Τϡ®Ǥ롣
.PP
ԤΥڥϰʲΤ褦Ӥ롣եɤꤵƤϡ
.B sort
Ͻץ (ordering option) ˤäƥޥɥ饤󤫤ꤵ
ˡ줾ιԤΥեɤӤ롣ưϰ㤤ȯ
뤫ƤΥեɤԤޤǷ³롣
.PP 
Х륪ץ
.I Mbdfinr
ΤΤɤ줫ͿƤơեɤꤵʤäϡ
.B sort
ϥХ륪ץλβˡΤӤ롣
.PP 
⤷ƤΥ (ޤϽץλ꤬ʤ)
.B sort
Ϻǽ (last-resort) ȤơޥƤǹԤ 1 
ХȤӤ롣
.\"?? machine collating sequence Ȥϡ
ǽȤˤӤϥХ륪ץ
.I \-r
ˤϤΤޤŬѤ롣
.\"??? ϡ
.I \-s
(stable) ץϤκǽȤӤԤʤäƤ
եɤäԤδ֤Ǥϡϥեν¸롣ե
ɤ䥰Х륪ץ󤬻ꤵʤä
.I \-s
ϸ̤ʤ
.PP
GNU
.B sort
ˤϥե礭ԤĹ˴ؤ¤Ϥʤϥե
κǽХȤ (newline) Ǥɬפʤ GNU
.B sort
ۤä newline ɲä롣
.PP
Ķѿ
.B TMPDIR
ꤵƤ硢
.B sort
ϰե֤ȤơǥեȤ /tmp ˤΥǥ
ȥѤ롣ץ
.I "\-T tempdir"
Ǥե֤ǥ쥯ȥǤ롣ץϴĶѿ
ͥ褵롣
.PP
ʲΥץϽϹԤν˱ƶ롣ϥХˤ⡢ޤ
ΥեɤΤߤФƤǤ롣եɤꤵ
ƤʤϡХ륪ץϹΤӤФŬѤ롣
ꤵƤϡХ륪ץϡä˥ץΤʤ
եɤ˷Ѿ롣
.\"?? ⤦äȤޤϤʤʤ...
.TP
.I \-b
ƹԤӤκݤˡƬζ̵뤹롣
.TP
.I \-d
Ģ׽ǥȤ롣ե٥åȡʳΥ饯
٤̵뤹롣
.TP
.I \-f
ȤκݤˡʸбʸƱ˰㤨 `b'  `B' 
Ʊ˥Ȥ롣
.TP
.I \-i
ASCII ɤϰϤǤ 040 ʾ 0176 ʲ (8 ʿ) ˴ޤޤʤʸ
̵뤹롣
.TP
.I \-M
Ƭζʸ򤹤٤̵뤷ơǽ˸줿 3 ʸ򡢷̾Τξ
άȤߤʤơ `JAN' < `FEB' < ... < `DEC' νǥȤ롣ʸ
ʸƱ˰롣̾Τˤʤʸϡ̤ǤȤߤ
.TP
.I \-n
Ƭʸ (֤ƤƤɤ) ʸȤӤ
롣ʸϡƬ \-  (ʤƤɤ) 0 ʾο
ƾ 0 ʾο (ʤƤɤ) ʤ롣
.TP
.I \-r
Ӥη̤սˤ롣礭ʥͤĹԤ᤯
ˤʤ롣
.PP
¾Υץϰʲ̤:
.TP
.I "\-o output-file"
ɸϤ
.I output-file
ѹ롣
.I output-file
ϥեΤɤ줫ҤȤĤä硢
.B sort
Ϥϥեե˥ԡƤ饽Ȥ
.I output-file
ؤνϤԤ
.TP
.I "\-t separator"
ƹԤ饽ȥ򸡺ݡʸ
.I separator
եɤΥѥ졼ˤ롣ǥեȤǤϡեɤ϶ʳ
ʸȶʸδ֤ζʸ (empty string) ˤäʬΥ롣㤨
ϹԤȤ ` foo bar' Ϳ줿硢
.B sort
ϤιԤե ` foo'  ` bar' ʬΥ롣եɥѥ졼
ϡΥեɤˤϴޤޤʤΤȤ롣
.TP
.I \-u
ǥեȤưޤ
.I \-m
ץưǤϡȤ줿ԤΤκǽΤΤɽ롣
.I \-c
ץưǤϡϢ³ԤΤʤɤå
.\"?? -c ϼ̵...
.TP
.I "+POS1 [\-POS2]"
ƹԤǥȥȤѤեɤꤹ롣 POS1  
POS2 ľʬ (POS2 ͿʤäϹޤ) ե
Ȥʤ롣եɤʸ֤ 0 Ϥޤ롣
.TP
.I "\-k POS1[,POS2]"
ȥꤹˡեɤʸ֤ 1 Ϥޤ롣
.PP
֤λ \fIf\fP.\fIc\fP Ȥ񼰤ǹԤ \fIf\fP Ѥե
ɤֹ桢 \fIc\fP Ƭʸֹǡ \fI+pos\fP ξϥե
ɤƬ顢\fI\-pos\fP ξľΥեɤκǸ夫롣 .\fIc\fP
ʬϾάǤξϥեɤƬʸȤʤ롣
.I \-b
ץ󤬻ꤵ줿 .\fIc\fP εϡ \fI+pos\fP ʤե
ɤ˺ǽ˸줿ʳʸȤʤꡢ \fI\-pos\fP ʤľΥե
ɰʹߤ˺ǽ˸줿ʳʸȤʤ롣
.PP
\fI+pos\fP  \fI\-pos\fP ˤϥץʸ
.I Mbdfinr
ղä뤳ȤǤ롣ξ硢ΥեɤˤϥХʽ
ץŬѤʤʤ롣
.I \-b
ץ \fI+pos\fP ڤ \fI\-pos\fP ˤξˤǤ
Х륪ץ󤫤Ѿ줿ξŬѤ롣
.I \-n
ޤ
.I \-M
ץ󤬻ꤵ줿ˤϡ
.I \-b
ۤ˻ꤵ줿Ȥߤʤ졢
.I \-b
 \fI+pos\fP  \fI\-pos\fP ξŬѤ롣ʣ
ΥեɤˤޤäƤƤ⹽ʤ
.PP
ʾ˲äơ GNU 
.B sort
ҤȤĤǵư줿ˤϡʲΥץǧ:
.TP
.I "\-\-help"
Ȥ˴ؤåɸϤɽ¹֤ƽλ롣
.TP
.I "\-\-version"
СɸϤɽƽλ롣
.SH ܿ
.PP
.B sort
Ū (BSD  System V ) ǤϡĤΥץβ
ۤäŵŪʤΤȤƤ
.IR \-b ,
.IR \-f ,
.I \-n
ʤɤ󤲤뤳ȤǤ롣
GNU sort  POSIX ǻꤵƤ褦ư롣Ϥ
System V  (٤ƤǤϤʤ!) Ǥư˻Ƥ롣 POSIX ˤС

.I \-n

.I \-b
ȼʤ
Ӥ뤿ᡢ
.I \-M
ƱͤѹƤ롣ϥեɻ꤬ΤǤʤˤϡʸ
֤β˱ƶƤޤ⤷ʤ줬ˤʤϡŪ

.I \-b
äɤ
.SH Х
.I \-k
Ȥ뤫ɤˤäƥեֹΰ̣ۤʤäƤޤΤϺ
ΤȤǤ롣 POSIX !