Sed is a non-interactive line-based text editor. It can perform an edition in either file or STDIN
and print it in STDOUT
, which can later be redirected to a file it needed.
-e Editing instructions follows
-f File name of script follows
-n Supress automatic output of lines
-i Extension - Edit files in-place, saving backups with the specified extension.
If a zero-length extension is given, no backup will be saved.