On Fri, Oct 21, 2022 at 01:21:44PM -0400, Gary Dale wrote: > sed -i -s 's/\s*\<hr\ \ style.*\>//g' history.html > > Unfortunately, the replacement doesn't remove the line but rather leaves me > with: > > <;">
The 's' command in sed doesn't remove lines. It performs a substitution
within a line.
To remove lines, use the 'd' command instead.
unicorn:~$ printf 'line %s\n' {1..10} | sed '/7/d'
line 1
line 2
line 3
line 4
line 5
line 6
line 8
line 9
line 10

