Stream editing with sed

The basic idea n using sed (Stream EDitor)is to read lines one at a time from the input files, apply commands from the list (placed within single quotes), in order, to each line and write the edited output to the standard output. The syntax looks like the following:

sed 'list of ed commands' filenames

Below we will provide a series of useful usages.