Sed is a stream editor in UNIX like operating system which is used for filtering and transforming text. Sed is derived originally from the basic line editor ed, an editor you will find on every unix system but one that is rarely used because of its difficult user interface.