Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ukma!gatech!bbn!bbn.com!rsalz From: rsalz@bbn.com (Rich Salz) Newsgroups: comp.unix.questions Subject: Re: context-grep Message-ID: <1488@fig.bbn.com> Date: 8 Feb 89 23:04:06 GMT References: <9176@burdvax.PRC.Unisys.COM> <2557@eos.UUCP> Organization: BBN Systems and Technologies Corporation Lines: 22 = I recall some time ago there was a discussion of some kind of = variation on grep that could be used to show, e.g., = all lines in a file containing "foo" occurring within, say, = 6 lines of a line containing "bar". In <2557@eos.UUCP> jaw@eos.UUCP (James A. Woods) writes: =sure, GNU e?grep would handle this as: = grep -6 bar file | grep foo =thank mike haertel. it has been available via 'ftp' from prep.ai.mit.edu =for quite some time. I will be posting it in comp.sources.unix within a week. James is too modest. =p.s. anyone using the original fast e?grep under the stead of 4.3-tahoe =should switch to GNU grep now. Yes, indeedy, they surely should. Look for it. /rich $alz -- Please send comp.sources.unix-related mail to rsalz@uunet.uu.net.