OK I found this question:
How do I delete a matching line, the line above and the one below it, using sed?
and just spent the last hour trying to write something that will match a string and delete the line containing the string and the line beneath it (or a variant – delete 2 lines beneath it).
I feel I’m now typing random strings. Please somebody help me.
If I’ve understood that correctly, to delete match line and one line after
Match line and two lines after
Nbrings in the next lined– deletes the resulting single line