HP 3000 Manuals

Insert Replace Pattern [ HP EDIT Reference Manual ] MPE/iX 5.0 Documentation


HP EDIT Reference Manual

Insert Replace Pattern 

Purpose 

Inserts the current replacement pattern into text.

Default Syntax 

None

This command does not have a default key assignment.  You can either
assign a key to the command using the Assign Key command or issue the
command using Execute Editor Command.

Description 

This command inserts the current replacement pattern into text as a new
line above the current line.  You can use this command in conjunction
with the Define Replace Pattern From Text command to edit a replacement
pattern.

If you have defined a replacement pattern with the Define Replace Pattern
command and want to edit it, execute the Insert Replace Pattern command
to edit the replacement pattern within the file.  After editing the
replacement pattern, you can save this modified pattern by executing the
Define Replace Pattern From Text command.  You could then erase the
inserted replacement pattern using the Delete Line command to restore the
file to its previous state before you executed the Insert Replace Pattern
command.

Procedure 

To insert the current replacement pattern into text: 

   1.  Issue Execute Editor Command (E). HP EDIT displays the prompt
       Command:  on the message line.

   2.  Type insert replace pattern beginning at the cursor position.

   3.  Press Return.  HP EDIT inserts the replacement pattern above the
       line where you executed the command.

Example 

To insert the current replacement pattern of INTEGER above the following 
line: 

     The current replacement pattern will be inserted above.

   1.  Issue Execute Editor Command (E). HP EDIT displays the following
       prompt on the message line:

            Command: _

   2.  Type insert replace pattern beginning at the cursor position and
       press Return.  HP EDIT inserts the replacement pattern as shown:

            integer
            The current replacement pattern will be inserted above.

Related Commands 

       Define Replace Pattern
       Define Replace Pattern From Text
       Define Search Pattern
       Define Search Pattern From Text
       Global Search And Replace Backward
       Global Search And Replace Forward
       Insert Search Pattern
       Search And Replace Backward
       Search And Replace Forward
       Search Backward
       Search Forward



MPE/iX 5.0 Documentation