Xref: utzoo comp.unix.wizards:9100 comp.unix.questions:7401
Path: utzoo!utgpu!water!watmath!clyde!bellcore!rutgers!ucsd!sdcsvax!net1!hutch
From: hutch@net1.ucsd.edu (Jim Hutchison)
Newsgroups: comp.unix.wizards,comp.unix.questions
Subject: Re: grep replacement (search w/context)
Message-ID: <5008@sdcsvax.UCSD.EDU>
Date: 4 Jun 88 23:49:59 GMT
Sender: nobody@sdcsvax.UCSD.EDU
Reply-To: hutch@net1.UUCP (Jim Hutchison)
Organization: UCSD EMU Project (Educational Microcomputer Unix)
Lines: 12

I can think of a few nasty ways to do this one, I am hoping to get
a better answer.

A grep with a window of context around it.  A few lines proceeding and
following the pattern I am looking for.  The VMS search command sported
this as an option/qualifier.  I miss it sometimes (not VMS, just a few
of the more wacky utilities, like the editor option for creation of
multi-key data base files :-).

/*    Jim Hutchison   		UUCP:	{dcdwest,ucbvax}!cs!net1!hutch
		    		ARPA:	Hutch@net1.ucsd.edu
Disclaimer:  The cat agreed that it would be o.k. to say these things.  */