HP 3000 Manuals

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


HP EDIT Reference Manual

Find Character 

Purpose 

Searches forward for the specified character.

Default Syntax 

[n] 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 forward
in the file until it finds the next occurrence of this character or the
nth occurrence indicated by the count.

When HP EDIT finds the character, it moves the cursor to that location
and highlights the character 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 a specified character: 

       [REV BEG]

   1.  Press the F key, or type a count, then press the F key.[REV END]
       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 a specified character within a block: 

   1.  Select the block of text you want to search in.

   2.  Press the F key.
[REV END]

Example 

To find the seventh 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 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
       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 Matching Delimiter
       Find .
       Find Previous Blank Space
       Find Previous Character
       Find Previous .



MPE/iX 5.0 Documentation