How to Use sed to Find and Replace String in Files

sed is a stream editor. It can perform basic text manipulation on files and input streams such as pipelines. With sed, you can search, find and replace, insert, and delete words and lines. It supports basic and extended regular expressions that allow you to match complex patterns.

Source: LXer – How to Use sed to Find and Replace String in Files