I'm facing a rather newbie problem and caught my ears around it :( I have a file with xml tags and I want that when I find:
</ac:image>
</a>
the </ac:image>
one followed by an </a>
, then to delete the line with </a>
.
There was also an "a href" before but that one was rather specific and I deleted it with sed and a match. On this one I wonder how to approach it, if it's a multiline match but then not sure how to select the second line of the match.
Can someone point me in the right direction, please?