SED - Macros
The editor allows multiple command sequences to be collected as a macro for subsequent re-execution.
The functions marked with an asterisk in the table at the start of this description cannot be included within a macro and will be rejected during collection of a macro.
Start macro (Ctrl-X open bracket)
Subsequent keystrokes are collected to form the macro. Each function is executed as it is collected.
End macro (Ctrl-X close bracket)
Terminates collection of a macro.
Execute macro (Ctrl-X E)
Causes execution of the macro. The repeat counter may be used to execute the macro multiple times.
Use of the repeat function after an execute macro function will repeat the macro. If the repeat count is set for the repeat function, the macro is executed that number of times. Otherwise the repeat count applied to the previous execution of the macro is used.