Commodore PC Ms-Dos 3.2 User's Manual page 90

Table of Contents

Advertisement

118 MS-DOS User's Reference
The direct 1st file now contains a sorted listing of the directory on
v—'
the default drive.
You can also specify a drive other than the default drive. Suppose,
*
j
for example, you want to send the sorted data to a file named
^—^
direct 1st on drive B. To do this you could simply type the
following:
dir
\
sort
>
b:direct. 1 51
A pipeline may consist of more than two commands. The follow-
ing command, for instance, sorts your directory, shows it to you
one screenful at a time, and puts -More- at the bottom of your
screen when there is more output to be seen:
i
1
dir
I
sort
S
more
Since commands and filters can be piped together in many dif-
\^y
ferent ways, you will find many uses for them.
What's next
In this chapter you've learned about internal and external ms-dos
commands and how to redirect their input and output. The next
chapter lists each of these commands in alphabetical order along
with their syntax and comments about their use.
U
U
u
u
u

Advertisement

Table of Contents
loading

Table of Contents