Name

i

Synopsis

[address]i\
text
[address1[,address2]]i \ {G}text

Insert text before each line matched by address. (See a for details on text.)

The GNU version accepts two addresses, and allows you to put the first line of text on the same line as the i command.

Example

/Item 1/i\
The five items are listed below:

Get Unix in a Nutshell, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.