I have a directory with many HTML documents. Most of them contain the codeblock
.org-link {
/* org-link */
color: #b58900;
font-weight: bold;
text-decoration: underline;
}
inside the <style type="text/css"> tag. I'd like to write a script that removes the line text-decoration: underline; from this block in every file.
Usually I would write a sed or perl one-liner to simply delete each instance of text-decoration: underline; but many of the documents have other instances of the line text-decoration: underline that I do not removed.
Is there a tool in linux that can easily do this?