On 22/10/2022 20:23, Gary Dale wrote:
sed -i '/<hr style.*>/d' *.htmldid the trick.
I would suggest you to use more specific pattern to avoid removing of meaningful text due to a lost newline character:
sed -i -e '/^\s*<hr style[^>]*>\s*$/d'"." in regexp may be a source of surprises (or catastrophic backtracking in more complex regexps)
printf 'A <br>b<br>c\n' | sed -e 's/<.*>/\n/' A c printf 'A <br>b<br>c\n' | sed -e 's/<.[^>]>/\n/g' A b c