beautypg.com

HP Integrity NonStop J-Series User Manual

Page 110

background image

Working with Patterns

Safeguard User’s Guide — 422089-020

9 - 14

INFO DISKFILE-PATTERN

4. $DATA3.A*.B*

INFO DISKFILE-PATTERN $DATA1.A*.* would return pattern 1.

INFO DISKFILE-PATTERN $DATA1.A*.*, ALL would return patterns 1 and 2.

INFO DISKFILE-PATTERN $DATA*.A*.* would return patterns 1 and 3 (one
dimensional search).

INFO DISKFILE-PATTERN $DATA*.A*.*, ALL would return patterns 1, 2, 3, & 4 (a
multi-dimensional search).

If you added this pattern, ADD DISKFILE-PATTERN $*.*.*, to the above patterns, a
one-dimensional search that will add the pattern “*.*” to every volume that matches
“$*”.

If you had volumes $DATA1, $DATA2, and $DATA3, the following patterns would
be added:

5. $DATA1.*.*

6. $DATA2.*.*

7. $DATA3.*.*

If you now did INFO DISKFILE-PATTERN $*.*.*, which patterns would be
returned? Patterns 1, 2, 3, 4, 5, 6, and 7 are wrong. The answer is 5, 6, and 7.

That command is a one dimensional search. It is asking for the specific pattern “*.*”
on all volumes that match “$*”.

If you use INFO DISKFILE-PATTERN $*.*.*, ALL, you get all patterns. This is a multi-
dimensional search, that is asking for any patterns that match “*.*” from all volumes
that match “$*”.

“ALL” directs Safeguard to treat all wildcards as search characters. If you omit “ALL”,
the wildcards in the subvolume and filename are the actual characters you are looking
for.

INFO DISKFILE-PATTERN Examples

To display the diskfile pattern $DATA.*TEST.* (that is, display a single diskfile
pattern) using display user as name:

=DISPLAY USER AS NAME

=INFO DISKFILE-PATTERN $DATA.*TEST.*

This output appears:

LAST-MODIFIED OWNER STATUS WARNING-MODE

$DATA.*TEST

* 28SEP04, 5:44 MLH1.MGR THAWED OFF

\KONA.PROD.CARLY R

\KONA.TEST.JIMMY R,W

This manual is related to the following products: