Sed: remove all but last consecutive matching line?

Printable View