Xref: utzoo comp.unix.wizards:8837 comp.unix.questions:7262 Path: utzoo!attcan!uunet!lll-winken!ubvax!ames!elroy!david From: david@elroy.Jpl.Nasa.Gov (David Robinson) Newsgroups: comp.unix.wizards,comp.unix.questions Subject: Re: grep replacement Message-ID: <6877@elroy.Jpl.Nasa.Gov> Date: 26 May 88 20:47:11 GMT References: <7882@alice.UUCP> <5630@umn-cs.cs.umn.edu> <6866@elroy.Jpl.Nasa.Gov> <2978@ihlpe.ATT.COM> Organization: Image Analysis Systems Grp, JPL Lines: 19 In article <2978@ihlpe.ATT.COM>, dcon@ihlpe.ATT.COM (452is-Connet) writes: > In article <6866@elroy.Jpl.Nasa.Gov> alan@cogswell.Jpl.Nasa.Gov (Alan S. Mazer) writes: > >One thing I would _love_ is to be able to find the context of what I've > >found, for example, to find the two (n?) surrounding lines. I have wanted > >to do this many times and there is no good way. > Also, what line number it was found on. How about "grep -n"? -- David Robinson elroy!david@csvax.caltech.edu ARPA david@elroy.jpl.nasa.gov ARPA {cit-vax,ames}!elroy!david UUCP Disclaimer: No one listens to me anyway!