Reads input and sorts it before writing it as output.
sort [/r] [/+n] [/m kilobytes] [/l locale] [/rec characters] [[drive1:][path1]filename1] [/t [drive2:][path2]] [/o [drive3:][path3]filename3] [command |] sort [/r] [/+n] [/m kilobytes] [/l locale] [/rec characters] [[drive1:][path1]filename1] [/t [drive2:][path2]] [/o [drive3:][path3]filename3]
Parameters | |
---|---|
| |
Parameter | Purpose |
| |
/r | Reverses the sort order. |
/+n | Specifies the starting character position, n, where sort begins its comparison. |
/m kilobytes | Specifies the allocation of memory for use by the sort command (in kilobytes). |
/l locale | Changes the sort order of characters as defined by the default locale. The only available option is the “C” locale. |
/rec characters | Sets the maximum number of characters that can be contained in a line on the input file (default is 4,096; maximum is 65,535). |
[drive1:][path1]filename1 | Specifies the location of the file to be sorted. |
/t [drive2:][path2] | Specifies a path to a folder that the sort command can use for working storage when the data to be sorted cannot fit into memory. |
/o [drive3:][path3]filename3 | Specifies where a file's sorted input is to be stored. |