Xref: utzoo comp.unix.wizards:8889 comp.unix.questions:7291 Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!elroy!spl1!laidbak!daveb From: daveb@laidbak.UUCP (Dave Burton) Newsgroups: comp.unix.wizards,comp.unix.questions Subject: Re: grep replacement Message-ID: <1463@laidbak.UUCP> Date: 27 May 88 04:08:03 GMT References: <7882@alice.UUCP> <5630@umn-cs.cs.umn.edu> <6866@elroy.Jpl.Nasa.Gov> <2978@ihlpe.ATT.COM> Reply-To: daveb@laidbak.UUCP (Dave Burton) Organization: is pretty bad/My method of Lines: 17 In article <2978@ihlpe.ATT.COM> dcon@ihlpe.UUCP (David Connet) writes: |Also, what line number it was found on. Already there: grep -n. 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. Please. Maybe "grep -k" where k is any integer giving the number of lines of context on each side of grep, default is 0. Oh, but hey, _you're_ designing it! :-) -- --------------------"Well, it looked good when I wrote it"--------------------- Verbal: Dave Burton Net: ...!ihnp4!laidbak!daveb V-MAIL: (312) 505-9100 x325 USSnail: 1901 N. Naper Blvd. #include Naperville, IL 60540