Find All Occurrences [ HP EDIT Reference Manual ] MPE/iX 5.0 Documentation
HP EDIT Reference Manual
Find All Occurrences
[REV BEG]
Purpose
Provides a method for rapid movement to a line containing a search
pattern.
Default Syntax
[n] G
where n is a count that specifies the numbers of lines to find all
occurrences of the search pattern. If you execute the Find All
Occurrences command without a count, HP EDIT searches the entire file.
Description
This command allows rapid movement to a line containing the search
pattern. There are three ways Find All Occurrences looks for a search
pattern:
* In the count lines beginning with the current line, if a count is
specified.
* In the current block, if a block is specified.
* In the entire file, if no count or block is specified.
Procedure
To find all occurrences of specified characters:
1. Specify a search pattern (for instructions on how to specify a
search pattern, see the Define Search Pattern command).
2. Press G, Find All Occcurrences.
The Find All Occurrences screen appears and shows up to 19 lines
that contain the defined search pattern. HP EDIT displays each
line and the line number. The line number appears whether the
file is numbered or unnumbered.
To see the next screen of lines containing the search pattern,
press the spacebar. There is no overlap of lines between the
first screen and the second screen.
3. To move from the Find All Occurrences screen to the desired line
within the file, move the cursor to the appropriate line on the
Find All Occurrences screen and press Return.
4. To quit before selecting a line on the Find All Occurrences
screen, press Return. This takes you back to the line you were at
when you issued the Find All Occurrences command.
5. To quit, press CTRL Y.
Related Commands
Find Blank Space
Find Character
Find .
Find Previous Blank Space
Find Previous Character
Find Previous .
[REV END]
MPE/iX 5.0 Documentation