My apologies if this has been answered in a previous post. I've been doing a lot of searching, but I haven't been able to find what I was looking for. Specifically, I am wondering if I can utilize sed and/or awk to locate two strings in a file, and replace everything between those two strings (including the strings themselves) with new text.
For example, lets say I have a file with the following text:
"The quick brown fox jumps over the lazy dog" is an English-language program, that is, a phrase that contains all of the letters of the alphabet. It has been used to test typewriters and computer keyboards.
And I want it to read like this:
"Then the quick onyx goblin jumps over the lazy dwarf" is an English-language program, that is, a phrase that contains all of the letters of the alphabet. It has been used to test typewriters and computer keyboards.
How do I go about replacing
"The quick brown fox jumps over the lazy dog"
with
"Then the quick onyx goblin jumps over the lazy dwarf"
? Any assistance would be appreciated. Thanks in advance.