home *** CD-ROM | disk | FTP | other *** search
- SAMPLE SORT command results | Comments about the output
-
- SORT In this example, "Its now 1 AM.Ctrl-Z" was
- Its typed in, one word on a line, pressing Enter
- now after each word. The Ctrl-Z told SORT that
- 1 you were done entering the input. SORT then
- AM. proceeded to display the sorted output on the
- Ctrl-Z screen, one line at a time. If SORT/R had
- 1 been used, instead of SORT, the output would
- AM. have been displayed in the reverse order,
- Its with "now" as the first line.
- now
-
- SORT/R <TEXTFILE.TXT This reads input from TEXTFILE.TXT, which
- This is line 3 contains three lines of text, sorts them in
- This is line 2 reverse alphanumeric order and displays the
- This is line 1 results on the screen.
-
- SORT <MAILLIST.TXT >LPT1: This sorts the lines in MAILLIST.TXT and
- writes them to the printer.
-
- DIR | SORT/+14 Here we are sorting the output from the DIR
- command starting on column 14 (which is the
- TUTOR BAS 1022 file's size). In this example, the SORT is a
- PAL TXT 9042 used in conjunction with another command.
- DBTUTOR EXE 10661 Notice the use of |(piping) to send the
- MYFILE DOC 101512 output of the DIR command into SORT. Use +9
- to sort by extension, +23 to sort by date,
- and +33 to sort by time.
-
- SORT <FILE1.TXT >ALPFILE1.TXT This reads the lines in FILE1.TXT and writes
- the sorted lines to a file called
- ALPFILE1.TXT.
-
-