sed
Find and replace text in files or streams
sed 's/old/new/g' replaces all occurrences. sed -i modifies a file in place. Use sed to edit config files in scripts without opening an editor.
Example
$ echo 'Hello World' | sed 's/World/Linux/'
Hello Linux
Tip: Type it yourself in the terminal below - reading is not the same as doing.