I use this
cat foo.txt | sed '/bar/d'
to remove lines containing the string 'bar' in the file.
I would like however to remove those lines and the line directly after it. Preferably in
awk or other tool that's available in MINGW32.
It's a kind of reverse of what I can get in
-B to print matching lines as well as lines before/after the matched line.
Is there any easy way to achieve it?