Xref: utzoo comp.unix.questions:8311 comp.unix.wizards:9979 Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!mailrus!tut.cis.ohio-state.edu!rutgers!bellcore!tness7!tness1!sugar!ficc!jbush From: jbush@ficc.UUCP (james bush) Newsgroups: comp.unix.questions,comp.unix.wizards Subject: Re: cgrep (context-grep) Summary: I have a version... Keywords: grep Message-ID: <1114@ficc.UUCP> Date: 18 Jul 88 14:51:07 GMT References: <2985@cvl.umd.edu> <4435@fluke.COM> Distribution: na Organization: Ferranti International Controls Lines: 21 In article <4435@fluke.COM>, inc@tc.fluke.COM (Gary Benson) writes: | arensb@cvl.umd.edu (Andrew Arensburger) writes: | | " I'm thinking of writing a utility called cgrep, which works just | "like grep, but instead of writing out just the line on which the pattern | "was found, would write out a couple of lines surrounding the line in | "question. | " Has anyone implemented this, or am I going to have to write it? | | | Write it! ... I have such a utility, although it has some problems: 1. It is written in AWK, and is therefore slow. 2. It may die on some applications. 3. It seems always to print at least one preceeding line. However, you are welcome to it if you want. I am not sure of where it should be posted. -- James Bush, Ferranti, Houston The Bible - the "source code" of life Internal address: jbush extension 5230, mail stop A/3204, room A/3602 External address: ..!uunet!nuchat!sugar!ficc!jbush