Using the sed command summary
All sed commands are single letters plus some parameters, such as line numbers or text strings.
The commands summarized below make changes to the lines in the pattern space.
The following symbols are used in the syntax diagrams:
Symbol | Meaning |
---|---|
[ ] | Square brackets enclose optional parts of the commands |
italics | Parameters in italics represent general names for a name that you enter. For example, FileName represents a parameter that you replace with the name of an actual file. |
Line1 | This symbol is a line number or regular expression to match that defines the starting point for applying the editing command. |
Line2 | This symbol is a line number or regular expression to match that defines the ending point to stop applying the editing command. |