At my work I have about 1000 html files (probabaly more) to edit which represent footnotes in a large technical document.
I have been asked to go through the html files one by one and manually edit the HTML, to get it all on the straight and narrow.
I know that this could probabaly be done in a matter of seconds with SED as the changes to each file are similar.
The body text in each file can be different but I want to change the tags to match the following:
<body>
<p class="Notes">See <i>R v Swain</i> (1992) 8 CRNZ 657 (HC).</p>
</body>
The text may change, for example it could say 'See R v Pinky and the Brain (1992) or something like that but basically the body text should be that.
Currently however the body text may be:
<body>
<p class="Notes"><span class="FootnoteReference"><span lang="EN-GB" xml:lang="EN-GB"><span><span
class="FootnoteReference"><span lang="EN-GB" xml:lang="EN-GB" style="font-size: 10.0pt;">See <i>R v Pinky and the Brain</i> (1992) </span></span></span></span></span></p>
</body>
or even:
<body>
<p class="FootnoteText"><span class="FootnoteReference"><span lang="EN-US"
xml:lang="EN-US" style="font-size: 10.0pt;"><span><![endif]></span></span></span>See <i>R v Pinky and the Brain</i> (1992)</p>
</body>
Can anybody suggest a SED expression or something similar that would solve this?
You would be saving thousands of tax payer dollars.
Thank you!