sed: c needs to trigger range logic like d, D works like d when there isn't anything left in the line, and more tests.
2 files changed