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