Sed is a Linux stream editor. It transforms text in an input stream, such as a file or pipe. Sed works on one line at a time. Because it has no visual display, it creates a pattern space, and once the pattern space is populated, your transformations are executed.
File
What to read next