Research V3 development
[unix-history] / man / man1 / sort.1
CommitLineData
d7be129b
KT
1.pa 1
2.he 'SORT (I)'9/2/72'SORT (I)'
3.ti 0
4NAME sort -- sort a file
5.sp
6.ti 0
7SYNOPSIS sort\b\b\b\b____ [ -\b_ ] [ input [ output ] ]
8.sp
9.ti 0
10DESCRIPTION sort\b\b\b\b____
11will sort the input file and write the
12sorted file on the output file.
13If the output file is not given,
14the input file is rewritten.
15If the input file is missing,
16sort uses the standard input as
17input and the standard output for output.
18Thus sort\b\b\b\b____ may be used as a filter.
19
20The sort is line-by-line in increasing ASCII collating sequence,
21except that upper-case letters are considered
22the same as the lower-case letters.
23
24The optional argument -\b_ will cause a reverse sort.
25
26sort\b\b\b\b____ is implemented in such a way that
27
28 sort /dev/mt0
29
30works correctly provided the tape is not too big.
31.sp
32.ti 0
33FILES /tmp/stm?
34.sp
35.ti 0
36SEE ALSO --
37.sp
38.ti 0
39DIAGNOSTICS --
40.sp
41.ti 0
42BUGS The
43largest file that can be
44sorted is about 128K bytes.