Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!ll-xn!mit-amt!mit-eddie!genrad!decvax!cwruecmp!hal!ncoast!allbery From: allbery@ncoast.UUCP (Brandon Allbery) Newsgroups: net.sources.d Subject: cgrep & context Message-ID: <1187@ncoast.UUCP> Date: Sun, 18-May-86 10:16:31 EDT Article-I.D.: ncoast.1187 Posted: Sun May 18 10:16:31 1986 Date-Received: Tue, 20-May-86 07:43:18 EDT References: <256@rtech.UUCP> Reply-To: allbery@ncoast.UUCP (Brandon Allbery) Followup-To: net.sources.d Distribution: net Organization: North Coast Computer Resources Lines: 25 Expires: Quoted from <256@rtech.UUCP> ["cgrep alternatives"], by daveb@rtech.UUCP... +--------------- | 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. +--------------- I wondered when someone would notice that. That's exactly why I wrote it (that, and ``make | context'' -- VERY useful). --Brandon -- decvax!cwruecmp!ncoast!allbery ncoast!allbery@Case.CSNET ncoast!tdi2!brandon (ncoast!tdi2!root for business) 6615 Center St. #A1-105, Mentor, OH 44060-4101 Phone: +01 216 974 9210 CIS 74106,1032 MCI MAIL BALLBERY (part-time) PC UNIX/UNIX PC - which do you like best? See <1129@ncoast.UUCP> in net.unix.