Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!harvard!caip!cbmvax!bpa!sjuvax!iannucci From: iannucci@sjuvax.UUCP Newsgroups: net.sources.d Subject: Re: cgrep alternatives Message-ID: <3156@sjuvax.UUCP> Date: Wed, 21-May-86 00:21:48 EDT Article-I.D.: sjuvax.3156 Posted: Wed May 21 00:21:48 1986 Date-Received: Sat, 24-May-86 05:34:36 EDT References: <256@rtech.UUCP> Reply-To: iannucci@sjuvax.UUCP (D. Iannucci) Distribution: net Organization: St. Joseph's University, Phila. PA. Lines: 25 In article <256@rtech.UUCP> daveb@rtech.UUCP writes: > 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. As a matter of fact, I was going (in the very near future) to post an update which can find the nth occurrence instead of always the 1st, and which understands ^ and $. Regular expressions are a bit beyond the scope of the project right now. > Then I remembered the 'context' program posted about 9 months ago, and... > ...does very nearly just what I want, without having to think about new > tools and new flags. > -db I don't see how it is possible to get an arbitrary desired context without telling the program exactly what you want. But I would be more than happy to hear about it. Maybe I will wait to repost cgrep and perhaps incorporate some of these new ideas. -- If I could walk THAT way.... Dave Iannucci @ St. Joseph's University, Philadelphia [40 00' N 75 15' W] {{ihnp4 | ucbvax}!allegra | {psuvax1}!burdvax | astrovax}!sjuvax!iannucci