Wild Cards In Pathnames; Examples Of Pathnames - HP 82718A Expansion Pod Reference Manual

For use with the hp-75
Hide thumbs Also See for HP 82718A Expansion Pod:
Table of Contents

Advertisement

e
o
g
e
e
I
Software Usage and Examples
location
=
start
[>
first directory> second directory> ...
>
last directory>]
Start
indicates the location within the hierarchy at which the location sequence begins, and defaults to
the current directory.
Start
can be a directory name, ..... (the root directory),
>
(the next name is the
name of the child file or directory),
<:
(parent directory--<:an be used more than once anywhere, except
after> ), or
?
(discussed shortly).
The use of location is optional. If you do not include location in the pathname when searching for a file,
(that is, the pathname is of the form
filename: ::·::t'lEt'l),
the entire electronic disc is searched, just like
HP-75 main memory or a mass storage device. If a file is copied to (if it doesn't already exist) or created
on the electronic disc and has no location, it is put in the current directory. The use of location implies a
knowledge of the file structure, and file searches and creations are performed as indicated by the
path name.
Each directory occupies 25 bytes of the electronic disc. If you do not want to take up that memory, you
do not have to use the hierarchical file structure. In that case, all files will be organized alphabetically
under the root directory.
Unlike mass storage file specifiers, pathnames do not allow passwords.
There is no file protection
mechanism provided for files on the electronic disc.
WILD CARDS IN PATHNAMES, Two wild card characters can be used in pathnames on the electronic
disc. The dash (-), used in either filenames or directory names, replaces one character, and will match any
character. The question mark
(?),
used for location, indicates zero or more directories, and causes file
searches to begin at the location up to the? (default is the current directory). The question mark must be
used in the form
II
[location]?> filename:
>::r'lero1".
All pathnames used to reference electronic disc files or directories can use wild cards except
PUPGE
DIP.
Wild cards cannot be used to reference files in HP-75 main memory except when using the
PH10\,'E
statement.
EXAMPLES OF PATHNAMES, Here are some examples of ways to specify the file
Dm'H'~LOAD
in the
example hierarchy.
dOI.,Jn
1 o.:=id:
::{r'ler'l
hp3000>download:xMeM
A?>do------:XMeM
Search entire electronic disc
Follow
this
path
to
DO~'J~'~LOAD
Search
for
Dm,mLOAD
starting
a t
the
h
p:3
tH~H:::1
directory
Find the first occurrence of a
file with the first 2 letters do
Search only the d.:=it.
-3COr'U'l
directory
53

Advertisement

Table of Contents
loading

Table of Contents