LinuxTechi - https://www.linuxtechi.com/20-sed-command-examples-linux-users/
Sed command or Stream Editor is very powerful utility offered by Linux/Unix systems. It is mainly used for text substitution , find & replace but it can also perform other text manipulations like insertion, deletion, search etc. With SED, we can edit complete files without actually having to open it. Sed also supports the use of regular expressions, which makes sed an even more powerful test manipulation tool.
In this article, we will learn to use SED command with the help some examples. Basic syntax for using sed command is,
sed OPTIONS… [SCRIPT] [INPUTFILE…]
Now let’s see some