Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site emory.UUCP Path: utzoo!watmath!clyde!bonnie!akgua!emory!km From: km@emory.UUCP (Ken Mandelberg) Newsgroups: net.unix Subject: How do you grep with context? Message-ID: <1442@emory.UUCP> Date: Sun, 25-Nov-84 21:00:16 EST Article-I.D.: emory.1442 Posted: Sun Nov 25 21:00:16 1984 Date-Received: Mon, 26-Nov-84 02:22:29 EST Distribution: net Organization: Math & Computer Science, Emory University, Atlanta Lines: 18 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@emory CSNET km.emory@csnet-relay ARPANET