Sort - Symbol PDT 3200 Technical Reference Manual

Hide thumbs Also See for PDT 3200:
Table of Contents

Advertisement

Command
Type
Purpose
The SORT Þlter sorts a text Þle and displays the output to the standard device.
Syntax
SORT [/ options ] [ filename ]
Remarks
SORT normally starts its comparisons at the Þrst character in a line.
The input to SORT may come from a Þle or it may be piped in from another Þlter
or a DOS command.
Options
The /+n option causes SORT to begin its alphabetical sorting starting at the nth
position in the string.
The /r option causes SORT to sort in reverse alphabetical order.
Examples
The following example sorts the Þle NAMES.LST and displays the output to the
screen.
SORT NAMES.LST
The following example produces a directory and then sorts the directory by Þle
size (the Þle size in a directory display starts on the 14th position each line or
string). The output display is then shown one screen at a time. This is done by
directing the output from SORT into the display utility MORE.
DIR ≠ SORT /+14 ≠ MORE

SORT

External
Chapter 5: ROM DOS Commands
5-85

Advertisement

Table of Contents
loading

Table of Contents