HP 3000 Manuals

Find Previous Character [ HP EDIT Reference Manual ] MPE/iX 5.0 Documentation


HP EDIT Reference Manual

Find Previous Character 

Purpose 

Searches backward for the specified character.

Default Syntax 

[n] ESC F

where n is a count that represents the nth occurrence of the specified
character from the current cursor location.  The default value of n is 1.

Description 

This command causes HP EDIT to prompt for a character and search backward
in the file until it finds the previous occurrence of the character
specified or the nth occurrence of the character indicated by the count.

When HP EDIT finds the character, it moves the cursor to that location
and highlights it if the Highlight Match parameter of the Set Options
screen is enabled.  If HP EDIT cannot find the specified character, it
sounds the terminal bell and displays Not found on the message line.

Procedure 

To find the previous character: 

   1.  Press ESC, then press the F key.  HP EDIT displays Specify search 
       character on the message line.

   2.  Type the character that you want HP EDIT to search for.  HP EDIT
       moves the cursor to the character and highlights it.
[REV BEG]

To find the previous character within a block: 

   1.  Select the block you want to find the previous character in.

   2.  Press ESC, then press the F key.  HP EDIT displays Specify search 
       character on the message line.

   3.  Type the character you want HP EDIT to search for.  HP EDIT moves
       the cursor to the character.
[REV END]

Example 

To find the seventh previous occurrence of the letter s: 

           This is a sample line.
           This is the second sample line.

   1.  Type the number 7 as the count.

   2.  Press ESC, then press the F key.  HP EDIT displays the following
       prompt:

            Specify search character

   3.  Press the s key.  HP EDIT moves the cursor to the seventh previous
       occurrence of the letter s as shown:

            This is a sample line.
            This is the second sample line.

Related Commands 

       [REV BEG]
       Find All Occurrences[REV END]
       Find Blank Space
       Find Character
       Find Matching Delimiter
       Find .
       Find Previous Blank Space
       Find Previous .



MPE/iX 5.0 Documentation