/ Command

Searches for and lists lines containing one or more specified character strings.

Syntax

/string[{ /& /string}...}|{ /! /string}...}]{/p{-q}}

Syntax Elements

/ A delimiter separating the different parts of the command. The slash terminating the search string is necessary only if further parameters follow the string specification, or if trailing blanks are to be included as part of the string.

string The character string to be found.

The caret character (^) can be used within the search string to match any single character (see Wildcard Character for more details).

& Specifies AND: all strings combined using & must be present to select a line.

! Specifies OR: any string of those combined using ! causes selection of a line.

Note

You cannot use both & and ! in the same / command.

p Specifies a starting column (see Column Dependent Matching).

q Specifies an ending column. If omitted, defaults to p. Ignored if less than p.

See Also

L (Locate) command.