Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!decvax!decwrl!sun!amdahl!rtech!daveb From: daveb@rtech.UUCP Newsgroups: net.sources.d Subject: cgrep alternatives Message-ID: <256@rtech.UUCP> Date: Wed, 14-May-86 20:05:21 EDT Article-I.D.: rtech.256 Posted: Wed May 14 20:05:21 1986 Date-Received: Sat, 17-May-86 04:14:04 EDT Distribution: net Organization: Relational Technology Inc, Alameda CA Lines: 17 A while back a 'cgrep' program was posted. While I found the idea good (I've often wanted context around grep output), it seemed annoying that the program required additional arguments to get context, and didn't take regular expressions. Then I remembered the 'context' program posted about 9 months ago, and used to decipher the output of compiler error messages. grep -n pattern files | context does very nearly just what I want, without having to think about new tools and new flags. -db -- Calrissian: "It's not my fault!" {amdahl, sun, mtxinu, cbosgd}!rtech!daveb