#!/bin/sh

STRING=$(cat<<EOF
blah blah blah
hello world
hello people
something
EOF
)

echo "$STRING" | grep -P '^(?!.*hello).*$'