10.3 Syntax of Sed CommandsSed commands have the general form:
Sed commands consist of 10.3.1 Pattern Addressing
A sed command can specify zero, one, or two addresses.
An address can be a line number, the symbol $ (for last line),
or a regular expression enclosed in slashes (/
10.3.2 Examples
Braces ({}) are used in sed to nest one address inside another or to apply multiple commands at the same address.
[ / The opening curly brace must end a line, and the closing curly brace must be on a line by itself. Be sure there are no blank spaces after the braces. |
|