Substitution

This section describes the substitution.

Function Syntax/Description
substitution for pattern [Line1 [,Line2] ] s/Pattern/String/Flags

Searches the indicated line(s) for a set of characters that matches the regular expression defined in Pattern. When it finds a match, the command replaces that set of characters with the set of characters specified by String.