Bash Find String dalam output program

./somecommand | grep -q 'string' && echo 'matched'
null234