#!/bin/sh
if [ ! -n "$EDITOR" ];then EDITOR=vi; fi
P="$1"
shift
$EDITOR "+/$P/" `grep -i -l "$P" $*`
exit
#	ge pattern file...
# Run grep, and edit each of the matched files. For vi, the "+" option
# will position the cursor at the first instance of the pattern.  Note
# that we use the -i option; the ge script doesn't.
