1 2 3 4 5 6 7 8 9 10 11
#!/bin/sh search=$1 shift if grep "^\#.*define.*$search" config.h 2>&1 >/dev/null || \ grep $search 2>&1 >/dev/null ; then exec $* fi