HP 9000 200 Series Manual page 96

Using the basic 5.0/5.1 system
Table of Contents

Advertisement

Listing Only File Names (Requires MS Binary)
The following statement will produce a multi-column listing of the names of the files in
the current working directory of the current default volume.
CAT; NAMES
I
Return
I
lost+found
MY_PROG
WORKSTATIONS
DATA_13
SYSTEM_BA5
PROJECTS
Cataloging Selected Files (Requires MS Binary)
You can also specify which files to list with some of the following options to the CAT
statement:
CAT; SELECT "ABC"
CAT; SKIP 30
CAT; COUNT Num_files
CAT; NO HEADER
CAT; NO HEADER. SKIP 10
Lists only the files beginning with the specified letters
"ABC".
Skips the first 30 files in the directory and lists only the
remaining files.
Stores the number of lines in the catalog in the numeric
variable called Num_files. (Note that this variable must
be defined in the current program or subprogram context
before it can be used.)
Suppresses the catalog heading.
Suppresses the catalog heading and skips the first 10 files
in the directory.
See the BASIC Language Reference for a complete description of these options.
5-18
U sing Directories and
Filps

Advertisement

Table of Contents
loading

This manual is also suitable for:

9000 300 series

Table of Contents