Here's my thought on Deleting Specific Lines in a File with sed or yq
sed can be a tricky beast, I often stumble when trying to pipe into it. Next time I need to use sed, I should reference this article by Nick Janetakis. He makes it looks much easier than my experience has been, and it appears to behave like a vim
:%s/ substitution does, or a
g/ g command.