|
|
These functions are used to manipulate an entire line at a time in the pattern space, rather than a string within a line. The following whole-line oriented functions are available:
The a command has only one possible address.
The c function may have two addresses, and therefore select a range of lines. If it does, all the lines in the range are deleted, but only one copy of the text is written to the output, not one copy per line deleted. After a line has been deleted by a c function, no further commands are attempted on it. If text is appended after a line by an a function, and the line is subsequently changed, the text inserted by the c function is placed before the text of the a function.