#!/bin/sh grep=grep case $0 in */*) dir=${0%/*} if test -x "$dir/grep"; then PATH=$dir:$PATH grep=grep fi;; esac exec $grep -E "$@"