The HP Search Command Interface [ HP Search/XL User's Guide ] MPE/iX 5.0 Documentation
HP Search/XL User's Guide
The HP Search Command Interface
HP Search provides two ways for you to specify the file names and
patterns of a particular search. You can supply the entire set of search
parameters on the HP Search command line or enter them one at a time at
the prompts. The syntax for the command line search specification is
shown below.
HPSEARCH "[filenames] [FOR patterns] [WITH options]"
An example of an HP Search command is shown below.
:HPSEARCH "@.SOURCE FOR FREADDIR FWRITEDIR WITH USECASE"
If you type HPSEARCH at the MPE prompt but do not give specifications for
file names or patterns, HP Search will prompt you for them. However, if
you do not specify which search options you want to use, you are not
prompted for them; the default options are used. You can only specify
search options on the HP Search command line following the WITH keyword.
If you specify a file on the command line, HP Search does not prompt you
for additional files to search. Likewise, if you specify a pattern on
the command line following the FOR keyword, HP Search does not prompt you
for additional patterns. Two examples of HP Search prompting are
discussed below.
Prompting for Files
To respond to an HP Search prompt for files, enter a file name and press
Return. When you have finished specifying files, press only Return. For
help specifying files to search, enter "help" or "?" at the prompt and HP
Search displays help screens explaining how to specify files.
In the following example, an indirect pattern file (PATFILE) is specified
on the command line. HP Search prompts for files to search, but not for
patterns or options.
:hpsearch "for ^patfile"
HPSEARCH HP36383A.00.00 (c) COPYRIGHT Hewlett-Packard Co. 1989
TUE, NOV 28, 1989, 11:00 AM
(For Help, Specify INFO="HELP")
Enter the files to be searched, one per line. You may use LISTF
wildcards.
Press [RETURN] to end list or ? for help on files.
File> filea
File> ^indirect
File>
5 files searched 0 matching lines found
Prompting for Patterns
In cases where no patterns have been specified on the command line, HP
Search prompts for search patterns. At each pattern prompt, enter one
pattern specifier and press Return. When you are finished specifying
patterns, press Return. If you enter "help" or "?", HP Search displays
context-specific help about the syntax of specifying patterns.
In this next example, a single file (FILEA) is specified on the command
line to be searched with the option USECASE. (By default, HP Search does
not pay attention to whether a character is uppercase or lowercase. The
USECASE option makes HP Search sensitive to the case of the pattern it is
searching for.)
:HPSEARCH "FILEA WITH USECASE"
HPSEARCH HP36383A.00.00 (c) COPYRIGHT Hewlett-Packard Co. 1989
TUE, NOV 28, 1989, 11:05 AM
(For Help, Specify INFO="HELP")
Enter the patterns to search for, one per line.
Press [RETURN] to end list or ? for help on patterns.
Pattern> firstpattern
Pattern> secondpattern
Pattern>
FILE FILEA.USER.ACCOUNT
:
1 file searched 22 matching lines found
MPE/iX 5.0 Documentation