The l command lists a specified number of lines that contain a search string and increments the line pointer to the last line listed. The l command locates one or more occurrences of a text string within a specified range of line (attribute) numbers.
Syntax
l{ }{#lines}{delimiter string{start.col{-end.col}}} |
Parameter(s)
#lines |
Specifies the number of lines containing a search string. If no line numbers are entered, the next occurrence is located and displayed. |
delimiter |
Any non-numeric character that indicates a column dependent correspondence. |
string |
Specifies the search string. The ^ is used as a wildcard search character within the string parameter for locating or replacing variable strings within strings. It matches any character. |
start.col |
Specifies the beginning column range in which strings are eligible for matching. |
end.col |
Specifies the ending column range in which strings are eligible for matching. |
Description
The p (or p0) command defaults to l22 (list 22 lines) each time the Editor is invoked. The line pointer is incremented to the last line listed. The colon is a special delimiter that indicates a column-dependent correspondence.
Example(s)
Locates and displays the next occurrence of the string, abc.
l 014 print customer-ID .l3 015 print 016 print customer.name 017 print customer.address l/abc |
Locates and displays the string abc in the next 99 lines.
l99/abc |
Locates and displays, in the next 99 lines, the occurrence of the string abc in column ranges 1 through 5.
l99/abc/1-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.
l99/a^c |
Locates the next line containing the string abc followed by a space in the first four positions of the line.
l:abc : |
Locates any attributes in the next 999 lines that contain any data.
l999/^ |
See Also
b Command, g Command, n Command, Editor Overview, t Command, u Command, Using the Enter Key