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