fork download
  1. #!/bin/bash
  2. s='This is a test toRemove first line
  3. This is a test toRemove second line toRemove'
  4. sed '/toRemove.*toRemove/d' <<< "$s"
  5. grep -v 'toRemove.*toRemove' <<< "$s"
Success #stdin #stdout 0.01s 5500KB
stdin
Standard input is empty
stdout
This is a test toRemove first line
This is a test toRemove first line