#!/bin/sh
#	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.
#
if [ ! -n "$EDITOR" ];then EDITOR=vi; fi

P="$1"
shift
$EDITOR "+/$P/" `grep -l "$P" $*`
