Introduction
Sometimes you need to quickly change text inside files or streams without opening an editor. sed helps you do this by reading text line by line and applying simple rules to change it automatically.
When you want to replace a word in a file without opening a text editor.
When you need to delete specific lines from a file based on a pattern.
When you want to print only certain lines from a file that match a condition.
When you want to quickly transform text output from another command.
When you want to save time by automating simple text edits in scripts.