Path: utzoo!attcan!uunet!husc6!bloom-beacon!tut.cis.ohio-state.edu!mailrus!ames!elroy!jane!alan From: alan@jane.Jpl.Nasa.Gov (Alan S. Mazer) Newsgroups: comp.unix.wizards Subject: cgrep (grep with context) Keywords: You can have it ... Message-ID: <6905@elroy.Jpl.Nasa.Gov> Date: 1 Jun 88 00:34:39 GMT Sender: news@elroy.Jpl.Nasa.Gov Lines: 12 Thanks to all the people who responded to my posted desire for a grep with context. After playing around with awk and such (how hard could it be?), I decided to write it in C. I'll be posting it to comp.unix.sources, but for now, if you'd like it, let me know and I'll mail it to you. It's based on egrep, with everything except the -b flag, I think, and allows you to display a selectable number of lines of context both above and below your matching line (and the numbers below and above needn't be the same). Seems to work with both Berkeley and the other one :-). (Confidential to David Gast: Sorry, couldn't work in the virus. Maybe next time :-).) -- Alan ..!cit-vax!elroy!alan * "But seriously, what elroy!alan@csvax.caltech.edu could go wrong?"