Assume you wanted to replace “abc” with “def” in a file, you can do so using sed as follows: -i tells sed to write the contents to the input file.
Assume you wanted to replace “abc” with “def” in a file, you can do so using sed as follows: -i tells sed to write the contents to the input file.