Name

a

Synopsis

[address]a\
                  text
               

Append text following each line matched by address. If text goes over more than one line, newlines must be “escaped” by preceding them with a backslash. The text will be terminated by the first newline that is not escaped in this way. The text is not available in the pattern space, and subsequent commands cannot be applied to it. The results of this command are sent to standard output when the list of editing commands is finished, regardless of what happens to the current line in the pattern space.

Example

                  $a\
                  This goes after the last line in the file\
                  (marked by $). This text is escaped at the\
                  end of each line, except for the last one.

Get Linux in a Nutshell, Fourth 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.