Insert Search Pattern [ HP EDIT Reference Manual ] MPE/iX 5.0 Documentation
HP EDIT Reference Manual
Insert Search Pattern
Purpose
Inserts the current search 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 search pattern into text as a new line
above the current line. You can use this command in conjunction with the
Define Search Pattern From Text command to edit a search pattern.
If you have defined a search pattern with the Define Search Pattern
command and want to edit it, execute the Insert Search Pattern command to
edit the search pattern within the file. After editing the search
pattern, you can save this modified pattern by executing the Define
Search Pattern From Text command. You could then erase the inserted
search pattern using the Delete Line command to restore the file to its
previous state before you executed the Insert Search Pattern command.
Procedure
To insert the current search pattern into text:
1. Issue Execute Editor Command (E). HP EDIT displays the prompt
Command: on the message line.
2. Type insert search pattern beginning at the cursor position.
3. Press Return. HP EDIT inserts the search pattern above the line
where you executed the command.
Example
To insert the current search pattern of ab*z$ above the following line:
The current search 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 search pattern beginning at the cursor position and
press Return. HP EDIT inserts the search pattern as shown:
ab*z$
The current search 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 Replace Pattern
Search And Replace Backward
Search And Replace Forward
Search Backward
Search Forward
MPE/iX 5.0 Documentation