: #!/bin/sh
#	gie pattern file...
# Run "grep -i", and edit each of the matched files.  For vi, the "+" option
# will position the cursor at the first instance of the pattern.
#
if [ ! -n "$EDITOR" ];then EDITOR=vi; fi

P="$1"
shift
$EDITOR -c "set ic" "+/$P/" `grep -i -l "$P" $*`
