Hi everyone,
I need to replace the text between two strings (html tags) and I'm having trouble figuring out how to do so. I can display the text with sed but I'm not having any luck deleting the text between the two strings.
My file looks like this:
<oths>test</oths><div class="text">1928 oakland (1)</div></td>
<oths>tes2t</oths><div class="text">1932 oakland (01)</div></td>
I need the output to look like this:
<oths>test</oths><div class="text"></div></td>
<oths>test2</oths><div class="text"></div></td>
So how do I find and remove any text between <div class="text"> and </div>? Thanks in advance for assistance with my issue!