context-grep
Francois-Michel Lang
lang at pearl.PRC.Unisys.COM
Wed Feb 8 01:32:58 AEST 1989
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".
Is there anything available that will do this?
I think I can use awk to do a watered-down version of this,
but if it's already available somewhere, I'd love to see it!
Many thanks.
----------------------------------------------------------------------------
Francois-Michel Lang
Paoli Research Center, Unisys Corporation lang at prc.unisys.com (215) 648-7256
Dept of Comp & Info Science, U of PA lang at cis.upenn.edu (215) 898-9511
More information about the Comp.unix.questions
mailing list