david@WUBIOS.WUSTL.EDU (David J. Camp) (11/14/90)
#! /bin/sh
# I was tired of greping simibm.lst only to go back with my pager
# to find out in which directory items were found. Now I do not
# have to do that, with the wonderful new Unix utility called simgrep.
# This will grep a simibm-style listing, but list the directories
# containing each match. Alas, it is case-sensitive.
PATTERN=$1
shift
sed -n -e '/PD[0-9]*:<.*\..*>/{x;s/.*//;x;H;d;}' \
-e "/$PATTERN/{H;g;p;d;h;}" \
$*
# david@wubios.wustl.edu ^ Mr. David J. Campd
# david%wubios@wugate.wustl.edu < * > +1 314 382 0584
# ...!uunet!wugate!wubios!david v "God loves material things."