Lines Matching full:grep
14 # Ensure we have: test, type, diff, grep -qE
17 GREP=`type grep > /dev/null 2>&1 && echo OK`
18 test "$GREP" = OK || { echo Error: grep command not found ; exit 1 ; }
19 echo foobar | grep -qE 'asd|oob' 2>/dev/null || { echo Error: grep command does not support -q and/…
33 # check for '-a' option of grep
34 if grep -a test test-all.sh >/dev/null 2>&1; then
42 $RUN 'LIBTOKENCAP' | grep 'your string was LIBTOKENCAP' \
43 && $RUN 'BUGMENOT' | grep 'your string was BUGMENOT' \
44 && $RUN 'BANANA' | grep 'your string started with BAN' \
45 && $RUN 'APRI' | grep 'your string was APRI' \
46 && $RUN 'kiWI' | grep 'your string was Kiwi' \
47 && $RUN 'Avocado' | grep 'your string was avocado' \
48 && $RUN 'GRAX' 3 | grep 'your string was a prefix of Grapes' \
49 && $RUN 'LOCALVARIABLE' | grep 'local var memcmp works!' \
50 && $RUN 'abc' | grep 'short local var memcmp works!' \
51 && $RUN 'GLOBALVARIABLE' | grep 'global var memcmp works!'
55 $ECHO \\101 2>&1 | grep -qE '^A' || {
59 $ECHO "\\101" 2>&1 | grep -qE '^A' || ECHO=