Substitute command

The substitute command ‘s’ replaces text in the addressed lines matching a regular expression re with replacement. By default, only the first match in each line is replaced. The syntax of the ‘s’ command is:

(.,.)s/re/replacement/[suffixes]

Suffixes: