Assume you wanted to add the text “mytext” to a file if it doesn’t exist: -i writes the output to the input file. If this isn’t specified, output is written…
Append text to file if it doesn’t exist Sed terminal
Continue reading
0 Comments
Replace text in file with Sed terminal
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.
Continue reading
0 Comments