HP 3000 Manuals

HP Search Quick Reference [ HP Search/XL User's Guide ] MPE/iX 5.0 Documentation


HP Search/XL User's Guide

Chapter 1  HP Search Quick Reference 

HP Search Quick Reference 

HP Search Quick Reference Page 

Command Syntax.  RUN HPSEARCH.PUB.SYS

[;INFO="[files] [FOR patterns] [WITH options]"]

If you do not specify files or patterns, HP Search prompts for them.

File Names.  Specify file names with the same characters as the MPE LISTF
command:

---------------------------------------------------------------------------------------------
|                      @                      | Any alphanumeric characters.                |
---------------------------------------------------------------------------------------------
|                      ?                      | Any single alphanumeric character.          |
---------------------------------------------------------------------------------------------
|                      #                      | Any single digit.                           |
---------------------------------------------------------------------------------------------

You can specify an indirect file containing the names of the files to
search:  ^filename 

Patterns.  You can specify up to 16 patterns.  Patterns match themselves,
except for the following characters:

--------------------------------------------------------------------------------------------
|            [ ]            | Brackets enclose a set of characters; matches any one in the |
|                           | set.                                                         |
--------------------------------------------------------------------------------------------
|             -             | Used in a range, as [a-z]; must be in brackets.              |
--------------------------------------------------------------------------------------------
|            ( )            | Parentheses enclose a group.                                 |
--------------------------------------------------------------------------------------------
|             |             | Used to choose between two patterns, as (A|B); matches       |
|                           | either pattern.  Must be in parentheses.                     |
--------------------------------------------------------------------------------------------
|             +             | Matches one or more of the previous pattern.                 |
--------------------------------------------------------------------------------------------
|             *             | Matches zero or more of the previous pattern.                |
--------------------------------------------------------------------------------------------
|             \             | Matches the following character literally.                   |
--------------------------------------------------------------------------------------------
|             @             | Matches any number of characters.                            |
--------------------------------------------------------------------------------------------
|             ?             | Matches any one character.                                   |
--------------------------------------------------------------------------------------------
|             #             | Matches any one digit.                                       |
--------------------------------------------------------------------------------------------
|         %x or %X          | Matches an exclamation point (!).                            |
--------------------------------------------------------------------------------------------
|         %s or %S          | Matches a single quote (').                                  |
--------------------------------------------------------------------------------------------
|         %d or %D          | Matches a double quote (").                                  |
--------------------------------------------------------------------------------------------
|            %nn            | Matches ASCII character with octal value nn.  (For example,  |
|                           | %7 is bell.)                                                 |
--------------------------------------------------------------------------------------------

You can use an indirect file to specify the patterns to search:
^filename 

HP Search Quick Reference Page 

Options. 

--------------------------------------------------------------------------------------------
| LIST filename [REPLACE]            | Writes output to filename.  If REPLACE, overwrites  |
|                                    | an existing file without prompting.  Default        |
|                                    | temporary file name is SRCHLIST.                    |
--------------------------------------------------------------------------------------------
| SEARCHLOG filename [REPLACE]       | Writes list of all files searched to filename.  If  |
|                                    | REPLACE, overwrites an existing file without        |
|                                    | prompting.  Default temporary file name is          |
|                                    | SRCHLLOG.                                           |
--------------------------------------------------------------------------------------------
| MATCHLOG filename [REPLACE]        | Writes list of files with matches to filename.  If  |
|                                    | REPLACE, overwrites an existing file without        |
|                                    | prompting.  Default temporary file name is          |
|                                    | SRCHMTCH.                                           |
--------------------------------------------------------------------------------------------
| PATTERNLOG filename [REPLACE]      | Writes all patterns used to filename.  If REPLACE,  |
|                                    | overwrites an existing file without prompting.      |
|                                    | Default temporary file name is SRCHPAT.             |
--------------------------------------------------------------------------------------------
| USECASE                            | Search is case sensitive.                           |
--------------------------------------------------------------------------------------------
| IGNORECASE                         | Search is not case sensitive.  (Default)            |
--------------------------------------------------------------------------------------------
| QUIET                              | Output is not written to $STDLIST.                  |
--------------------------------------------------------------------------------------------
| NOQUIET                            | Output is written to $STDLIST. (Default)            |
--------------------------------------------------------------------------------------------
| COUNT                              | Displays only the number of matching lines.         |
--------------------------------------------------------------------------------------------
| NOCOUNT                            | Displays every line that matches.  (Default)        |
--------------------------------------------------------------------------------------------
| NUM                                | Displays line numbers.  (Default)                   |
--------------------------------------------------------------------------------------------
| UNN                                | Line numbers are not displayed.                     |
--------------------------------------------------------------------------------------------
| DOTS                               | Displays a dot for each file searched.              |
--------------------------------------------------------------------------------------------
| NODOTS                             | Dots are not displayed.  (Default)                  |
--------------------------------------------------------------------------------------------
| INDEX                              | Streams a job to update the indexing file, only if  |
|                                    | the file has never been indexed before or has       |
|                                    | changed.                                            |
--------------------------------------------------------------------------------------------
| NOINDEX                            | Indexing file is not updated.  (Default)            |
--------------------------------------------------------------------------------------------

Online Help.  To get online help, type HELP at any HP Search prompt.  Or
at the MPE prompt, type:  HPSEARCH HELP 



MPE/iX 5.0 Documentation