SED substitutions
We'll cover the following...
We'll cover the following...
The format for the substitute command is as follows:
[address1[ ,address2]]s/pattern/replacement/[flags]
The flags can be any of the following:
nreplacenth instance of pattern with replacementgreplace all instances of pattern with replacementpwrite pattern space to STDOUT if a successful substitution takes placew fileWrite the pattern space to file if a successful substitution takes