#!/bin/sh
#	ge pattern file...
# Run grep to find the files that match the pattern, 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
F=`grep -l $*`
Xrand -name edit -e $EDITOR "+/$1/" $F &
