Name

sort

Synopsis

sort [options] [< file]

Sort standard input (use I/O redirection to sort a file).

Options

/R

Reverse usual sort order (i.e., Z to A, 9 to 0).

/+n

Start sorting in column n.

/L C

Sort according to characters’ binary encodings rather than the sort order implied by the system default locale.

/REC n

Specify the maximum number of characters (n) per line. The default is 4,096 and the maximum value is 65,535.

/T path

Use the indicated directory as the command’s temporary working directory. The default is the system temporary directory.

/O output-file-path

Write the sorted data to the specified file rather than as standard output.

Get Windows 2000 Commands Pocket Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.