HP 3000 Manuals

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


HP EDIT Reference Manual

Delete Pattern 

Purpose 

Deletes text matching the search pattern.

Default Syntax 

ESC d

Description 

This command deletes text that matches the search pattern.  Before this
command can function, you first must define a search pattern with the
Define Search Pattern command.  The search pattern can consist of a
string of up to 80 characters.

Once you have defined the search pattern, you can use the Search Forward
or Search Backward commands to locate the text pattern you want to
delete.  After you locate the text pattern, you execute the Delete
Pattern command to remove the unwanted text.

Procedure 

To delete a text pattern, either: 

   1.  Move the cursor to the first character of the pattern to be
       deleted.

   2.  Press ESC and the d key.  HP EDIT deletes the text pattern and
       shifts the remaining text left to the cursor position.

     or 

   1.  Execute the Search Forward (/) or Search Backward (:)  command to
       locate the search pattern.  HP EDIT moves the cursor to the first
       character of the pattern to be deleted.

   2.  Press ESC and the d key.  HP EDIT deletes the text pattern and
       shifts the remaining text left to the cursor position.

Example 

To delete the search pattern UNWANTED: 

            This unwanted text will be deleted.

   1.  Move the cursor to the position shown above, or use the Search
       Forward or Search Backward command to move the cursor to this
       position.

   2.  Press ESC and the d key.  HP EDIT deletes the pattern unwanted as
       shown:

            This _text will be deleted.

Related Commands 

       Define Search Pattern
       Search Backward
       Search Forward



MPE/iX 5.0 Documentation