sed is a stream editing tool made by GNU. A stream editor is used to perform text transformations on a input stream ( a file or redirected input from a pipe ). sed works by taking an edit script and modifies the input stream according to the edit script. sed comes pre-installed in most of the linux and unix based distributions and can also be installed easily from the distribution’s package manager.