fork(1) download
  1. #!/bin/sh
  2.  
  3. STRING=$(cat<<EOF
  4. blah blah blah
  5. hello world
  6. hello people
  7. something
  8. EOF
  9. )
  10.  
  11. echo "$STRING" | grep -P '^(?!.*hello).*$'
Success #stdin #stdout 0.02s 5312KB
stdin
Standard input is empty
stdout
blah blah blah
something