editor.l.locate Command/Editor


Command editor.l.locate Command/Editor
Applicable release versions: AP, R83
Category Editor (43)
Description searches for one or more occurrences of a text string within a specified range of line (attribute) numbers.

If no #lines is entered, the next occurrence is located and displayed.

The ending delimiter is required when the string contains trailing blank characters.

If the "#lines" parameter is specified, the requested number of lines are searched, and those that contain a match are displayed.

The line pointer is incremented by the specified number and may therefore not be positioned at the last line displayed.

The "column", "start.col" and "end.col" parameters respectively specify the beginning and ending column ranges within which strings are eligible for matching. (see the "c" command).

The up-arrow (^) character is used as a "wildcard" search character within the string parameter for locating or replacing variable strings within strings. It matches any character.

The colon (:) is a special delimiter that indicates a column-dependent correspondence.
Syntax l/string

Locates and displays the next occurrence of the string, "abc".


Locates and displays the string, "abc", in the next 99 lines.


Locates and displays, in the next 99 lines, the occurrence of the string, 
"abc", in column ranges 1 through 5.


Locates and displays, in the next 99 lines, any line containing a string 
beginning with the letter "a", followed by any character, and ending 
with the letter "c".

.l:abc :<return> 

Locates the next line containing the string, "abc", followed by one 
blank character in the first four positions of the line.


Locates any attributes in the next 999 lines which contain any data.
Related editor.^