This question already has an answer here:
I have about 450 html files I need to edit. I have the directory they all are in, so that narrows things down from the perspective of searching.
What needs to be changed is a bit of known text, some unknown text, then some known text again. This would be an example:
<div class="I know this"> Some random text here
More text</div (I know this)>
The above segments needs to be removed.
Below would need to be replaced. It would span multiple lines, but will be consistently the same all across.
<div class="oldFooter">Old Footer</div>
<div class="newFooter">New Footer text</div>
I've found that I need to use SED, but I am not sure what exactly to put in.