RDF System Management Manual

Table Of Contents
Entering RDFSCAN Commands
HP NonStop RDF System Management Manual524388-003
9-14
MATCH
MATCH
The MATCH command specifies a pattern to search for in the file. RDFSCAN
searches for the specified character string without regard for uppercase or lowercase.
text
specifies a match pattern.
Usage Guidelines
The match pattern you specify in the MATCH command is used in searches
subsequently conducted by the LIST and SCAN commands. Pattern matching is
disabled until you enter a MATCH command.
If you enter the MATCH command but omit the text parameter, the RDFSCAN prompts you
for a match pattern.
To disable pattern matching, merely press the RETURN key at the prompt without
entering a pattern.
When entering a match pattern, you can use asterisks (*) and question marks (?) as
wild-card characters.
When pattern matching is enabled, the DISPLAY function is automatically enabled;
when pattern matching is disabled, the DISPLAY function is automatically disabled.
Table 9-1 shows the symbols RDFSCAN uses in pattern matching.
Examples
The commands in this example specify scanning the entry-sequenced file, starting at
record 1000, for the first five records that contain the text “LOG FILE”:
Enter the next RDFSCAN function you want: MATCH *LOG FILE*
File: $SYSTEM.SANFRAN.RDFLOG, current record: 6454,
last record: 9466, Pattern: *LOG FILE*
Enter the next RDFSCAN function you want: AT 1000
File: $SYSTEM.SANFRAN.RDFLOG, current record: 1000,
last record: 9466, Pattern: *LOG FILE*
MATCH text
Table 9-1. Pattern Matching Symbols in RDFSCAN
Symbol Meaning
* Zero or more characters correspond to this position.
? Any character can be in this position.
Text Text in this exact position must match.