fork(1) download
  1. #!/bin/bash
  2. s='This is very new
  3. This is quite old
  4. This is not so new'
  5. sed -En 's/.*This(.*)new.*|.*/\1/p' <<< "$s"
Success #stdin #stdout 0.01s 5532KB
stdin
Standard input is empty
stdout
 is very 

 is not so