HP 3000 Manuals

Finding Text [ HP EDIT Reference Manual ] MPE/iX 5.0 Documentation


HP EDIT Reference Manual

Finding Text 

HP EDIT provides several commands that help you find specific characters
or strings of text.  You can also search for a text pattern and replace
it with substitute text.

Finding A Character 

You can quickly locate a single character using one of the [REV BEG]eight
[REV END] Find commands.  These commands search in the indicated
direction for a particular character.  You can also locate the matching
companion for a delimiter, such as one bracket of a pair of brackets.
You can precede most of the Find commands with a count to locate a
particular occurrence of a given character.

Refer to "Text Location Commands" in chapter 3 for more information about
these commands.

Searching And Replacing 

To search for a particular text segment, you first define the pattern of
text you want to locate using the Define Search Pattern command.  If you
want to replace the located text with other text, you can define the
replacement text using the Define Replace Pattern command.

After defining the search pattern, you can execute either the Search
Forward or Search Backward command.  If you want to replace text and have
defined a replacement pattern, you can execute the Search And Replace
Forward or Search And Replace Backward command.  HP EDIT also provides
commands to perform global search and replace functions.

Refer to "Text Location Commands" in chapter 3 for more information about
these commands.

Pattern-Matching Characters.     

Special pattern-matching characters assist you in defining search
patterns more general than simple matching strings.  If you prefer, you
can disable the pattern-matching characters from the Set Options screen
so that HP EDIT interprets the characters literally during search and
replace operations.

Refer to the Define Search Pattern command in chapter 4 for a detailed
explanation of pattern-matching characters.

Defining Patterns from Macros.     

Besides defining the search and replace patterns directly from the
keyboard, you can define them from within a macro using special commands
provided for this purpose.  When HP EDIT encounters one of these commands
in a macro, HP EDIT suspends macro execution, enabling you to define the
search or replace patterns from the keyboard.

Refer to "Macro Commands" in chapter 3 for specific information about
these macro commands that pause for your input.



MPE/iX 5.0 Documentation