Bash Find String in Programmausgabe finden

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