[root@kindle test]# image="hello"; echo "$image" | grep -q "x"; echo $? 1 [root@kindle test]# image="hello"; echo "$image" | grep -q "h"; echo $? 0