I'd like to remove a series of elements like:
div-id="st-head" class="noprint"
from a html file.
I'd like to remove a series of elements like:
div-id="st-head" class="noprint"
from a html file.
If all you want is to delete that exact string and don't care where it's found or anything about context at all, just do this:
sed -i.bak 's/div-id="st-head" class="noprint"//g' a.html b.html c.html
That will remove every occurrence of that string from each html file listed and a copy of the original called [filename.html].bak
.