A SERVICE OF

logo

Chapter 5 339
Command Definitions L-O
LISTFILE
FILENAME CODE LOGICAL RECORD- SPACE
SIZE TYP EOF LIMIT R/B SECTORS #X MX
F4 80B AF 411 411 16 144 2 *
F5 80B AF 199 199 16 64 1 *
HFS Examples
The following figure illustrates a hierarchical directory structure. In this figure, directory
names are shown as the character d plus a number (for example, d0), and file names are
shown as the character f plus a number (for example, f1). The examples assume the
directory structure shown. They also assume that the current working directory (CWD) is
/ACCT/GROUP/d0.
Example File System
/ACCT/GROUP/d0 = CWD
|
-|-
| | | | | |
d1 d2 d3 f1 f2 f3
| |
|- |
| | | | | | | | | | |
d4 f4 f5 d5 d6 f6 d7 f7 f8 f9 f10
| | | |
-| -| -| |-
| | | | | | | | | | | |
f11 f12 d8 f13 f14 f15 d9 f16 f17 f18 f19 f20
The first example below sets the `HPPROMPT'' variable to show the current working
directory, changes the CWD to d0, and produces a listing of all files one level below the
CWD.
:hello manager.acct,group
:setvar hpprompt "hpcwd:"
/ACCT/GROUP:chdir ./d0
CWD is "/ACCT/GROUP/d0".
/ACCT/GROUP/d0:listfile ./@
PATH= /ACCT/GROUP/d0/
d1/ d2/ d3/ f1 f2 f3
The next example produces a listing of all files one level below the CWD using FORMAT=2
(DISC) option.
/ACCT/GROUP/d0:listfile ./@,2
PATH= /ACCT/GROUP/d0/./
CODE LOGICAL RECORD- SPACE FILENAME
SIZE TYP EOF LIMIT R/B SECTORS #X MX
16W HBD 4 67107839 1 64 2 * d1/
16W HBD 4 67107839 1 64 2 * d2/
16W HBD 4 67107839 1 64 2 * d3/
80B AF 12 12 1 16 1 1 f1
80B AF 12 12 1 16 1 1 f2
80B AF 12 12 1 16 1 1 f3