Assume you wanted to replace “abc” with “def” in a file, you can do so using sed as follows:
sed -i -e '/options=/ s/abc/def/' /path/to/file
-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:
sed -i -e '/options=/ s/abc/def/' /path/to/file
-i tells sed to write the contents to the input file.