How do you grep with context?

Ken Mandelberg km at emory.UUCP
Mon Nov 26 12:00:16 AEST 1984


Often I grep a set of files for a keyword, but can't really
tell if I've found what I want without a few lines above and
below the match. 

Does anyone have a way of doing this? It wouldn't take much to
hack grep into doing this, but I just wonder if I am missing
a trick.


-- 
Ken Mandelberg
Emory University
Dept of Math and CS
Atlanta, Ga 30322

{akgua,sb1,gatech}!emory!km   USENET
km at emory                      CSNET
km.emory at csnet-relay          ARPANET



More information about the Comp.unix mailing list