After the optional word designator, you can add a sequence of one or more
of the following modifiers, each preceded by a ‘
.suffix’, leaving the basename.
q’, but break into words at spaces, tabs, and newlines.
newfor the first occurrence of
oldin the event line. Any delimiter may be used in place of ‘
/’. The delimiter may be quoted in
newwith a single backslash. If ‘
&’ appears in
new, it is replaced by
old. A single backslash will quote the ‘
&’. The final delimiter is optional if it is the last character on the input line.
s’, as in
gs/old/new/, or with ‘
s’ modifier once to each word in the event.