SED - Repeating functions

SED  -  Repeating Functions

Top  Previous  Next

 

A function may be repeated multiple times by use of the repeat count prefix. This is performed by use of the ESCape key followed by the number of times the command is to be repeated. The repeat count is displayed on the status line. Functions for which a repeat count is irrelevant ignore it.

 

Functions within macro definitions may be repeated in this way and the execution of the macro itself may also be repeated.

 

The repeat function (Ctrl-C or Ctrl-U) repeats the previously executed function. The repeat count prefix can also be used with this function.