I have a large flat file containing many instances of a repeated string I would like to remove:
<content type="html">
<p> </p>
<p>Jump around on couch, meow constantly until given food.</p>
<p> </p>
</summary>
Because you can't parse [X]HTML with regex I'm looking for a solution where I don't have to write my own regex. I tried using tr
without any luck. Here's my desired output:
<content type="xhtml">
<p>Jump around on couch, meow constantly until given food.</p>
</summary>
How can I remove the repeating string from bash without writing regex?