fork(3) download
  1. #!/bin/bash
  2. s="Text start
  3. This is a line I want to delete,
  4. this is second line that should be deleted.
  5. And this is stop-pattern which should terminate deletion.
  6. end"
  7. sed '/delete,/,/deletion\./d' <<< "$s"
Success #stdin #stdout 0s 19632KB
stdin
Standard input is empty
stdout
Text start
end