MPE/iX has enhanced certain commands, such as LISTFILE, to support pattern matching for HFS names as well as for traditional MPE names. Table 3-1 “Examples of Wildcard Resolutions” shows examples of resolutions to various wildcard combinations that use standard MPE syntax or HFS syntax. The examples in the table are case sensitive.
Table 3-1 Examples of Wildcard Resolutions
Filename Specified
| Pattern Matched |
---|
@ | Zero or more occurrences of A-Z, 0-9. |
[ab] | One occurrence of A or B. |
[a-c] | One occurrence of A, B, or C. |
./@ | Zero or more occurrences of:
|
./[aB] | One occurrence of a or B. |
./[a-c] | One occurrence of a, b, or c. |
./@[-ac] | Name ending in -, a, or c. |
The use of a trailing / at the end of a pathname or use
of the TREE option in commands such as LISTFILE and
STORE provides another expanded search tool. This
option causes the command to recursively search all
directories at all levels under the last directory specified
in the pathname. For example, the following command lists
all files at all levels under the /SYS account:
You can further delimit your search by using the NAME parameter with the LISTFILE command. The following example displays all files, groups, and directories under the SYS account that begin with OFF:
In addition, the following UDCs are provided to simplify searching for files and directories within the hierarchical file system:
The FINDDIR UDC finds a specified directory.
The FINDFILE UDC finds a specified file.
Refer to Volume 1 of the MPE/iX Commands Reference Manual
(32650-90003) for details on using the UDCs.