SORT+Sorting Text DataInstructs DOS to sort text data.
VERSION
PC-DOS 2.0+
MS-DOS equivalent: SORT (2.0+)
TYPE
External
SYNTAX
[d:][path] SORT [+n]
OPTIONS
[d:][path] Specifies the drive letter and path that
contain the SORT command file.
/R Sorts in reverse ASCII order.
/+n Sorts lines by their nth column instead
of by the character in the first column
of each line. The n is an integer value.
EXAMPLES
SORT TEST.TXT
Assuming TEST.TXT consists of a list of names, this command sorts
the file alphabetically and displays the results on the screen.
The less-than sign instructs SORT to take its input from the file
Assuming TEST.TXT consists of a list of names as well as phone
numbers that begin on column 20, this command sorts the list by
DIR|SORTPRN:
prints a directory listing in alphabetical order.
NOTE
You can redirect the output of the SORT command from
standard output (the screen) by using redirection or piping.
Likewise, you can instruct SORT to take its input from other than
the standard input (the keyboard). The maximum size of a file to
be sorted is 63K.
The SORT command sorts characters according to their binary
values, except that lowercase letters are equal to uppercase
letters =a) and characters above 127 are collated according to
the rules of the currently selected country code.
------------------------------------------------------------------
[For related topics, press R]
SEE ALSO
FIND Command
MORE Command
file: /Techref/DOS/command/sort.htm, NaNKB (0 imgs) in 0.183s is NaNKBps, updated: 1999/2/20 11:24, local time: 2025/4/30 21:17,
3.148.231.77:LOG IN
|
©2025 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://massmind.ecomorder.com/techref/DOS/command/sort.htm"> DOS command sort</A> |
Did you find what you needed? |
Welcome to ecomorder.com! |
Welcome to massmind.ecomorder.com! |
.