Introduction
Sometimes you need to quickly change words or letters inside a text file or output without opening an editor. The sed substitution command lets you do this by finding text and replacing it with new text right from the command line.
When you want to fix a typo in a configuration file without opening an editor.
When you need to replace all occurrences of a word in a log file to anonymize data.
When you want to change a specific string in multiple files using a script.
When you want to test how a text looks with some words changed before saving.
When you want to quickly replace text in the output of another command.