# l command (Editor processor)

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 (Editor processor)](https://d3codex.com/editor/b-command-editor-processor/)
- [g command (Editor processor)](https://d3codex.com/editor/g-command-editor-processor/)
- [n command (Editor processor)](https://d3codex.com/editor/n-command-editor-processor/)
- [Editor overview](https://d3codex.com/editor/editor-overview/)
- [t command (Editor processor)](https://d3codex.com/editor/t-command-editor-processor/)
- [u command (Editor processor)](https://d3codex.com/editor/u-command-editor-processor/)
- [Using the Enter key](https://d3codex.com/editor/using-the-enter-key/)

---
Source: https://d3codex.com/editor/l-command-editor-processor/ - part of the D3Codex reference.
