How to use SED command in Unix/Linux to replace a line in file
If you need to find a pattern using sed and replace the whole line in a file, use the command below.