#!/bin/sh
if [ ! -n "$EDITOR" ];then EDITOR=vi; fi
P="$1"
shift
$EDITOR "+/$P/" `grep -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.  See 
# also the gie script which uses the -i option.
