On 06/28/2024 10:23 PM, Charles Curley wrote:
On Fri, 28 Jun 2024 20:53:50 +0000
Michael Kjörling <c9bc136c6...@ewoof.net> wrote:
$ for v in $(seq 1 119); do sed -i 's,<span class="verse"
id="V'$v'">,<sup>,g' ./*.html; done
Be sure to have a copy in case something goes wrong; and diff(1) a few
files afterwards to make sure that the result is as you intended.
Having done that (or similar), don't forget to change the relevant
</span> closing tags to </sup> closing tags. However, there may be
other </span> closing tags you don't want to change because they close
other <span> tags we haven't seen.
Chuckle ;} The appropriate "</span>" to be replaced by "</sup>" is
ALWAYS preceded by "#160;" .
So you may prefer to use regexes as
Murphy intended, handling both the opening and closing tags at the same
time, leaving the intervening text intact.
In this particular case I suspect it would become overly complex.
I've already discovered that the order of edits is important.