sort — windowssystem32sort.exe
The sort
command sorts text on a line-by-line
basis. sort
is often used in conjunction with
either pipes or output redirection (see the beginning of this
chapter), wherein you can sort the output of another command.
sort
takes the following options:
sort [/r] [/+n] [/mkilobytes
] [/recrecordbytes
] [/t [tempdir
]] [/ooutputfilename
] [filename]
Option |
Description |
---|---|
|
Reverses the sort order; that is, sorts Z to A, then 9 to 0. |
|
Sorts the file according to characters in column
|
|
Specifies amount of main memory to allocate for the sort operation, in kilobytes (160 kb being the minimum). |
|
Specifies the maximum number of characters on a line (in a record); the default is 4096, and the maximum is 65,535. |
|
Specifies the location of the folder used to store temporary files in
case the data does not fit in main memory (see
|
|
Specifies a file where the output is to be stored. If not specified,
the sorted data is displayed at the prompt. Using the
|
|
The name (and optionally, full path) of the file to sort. |