#!/bin/sh result=$1 if grep -qi error: "$result" ; then echo "found string 'error' in $result" exit 1 fi exit 0