Path: utzoo!attcan!uunet!bu.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!ucsd!ucbvax!WUBIOS.WUSTL.EDU!david From: david@WUBIOS.WUSTL.EDU (David J. Camp) Newsgroups: comp.binaries.ibm.pc.d Subject: simgrep -- an easy way to locate files Message-ID: <9011131933.AA23066@wubios.wustl.edu> Date: 13 Nov 90 19:33:42 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 16 #! /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."