grep replacement

Russ Nelson nelson at sun.soe.clarkson.edu
Sun Jun 5 13:38:55 AEST 1988


In article <23133 at bu-cs.BU.EDU> bzs at bu-cs.BU.EDU (Barry Shein) writes:
>In article <7944 at alice.UUCP> andrew at alice.UUCP writes:
>>	the right thing to do is to write a context program that takes
>>input looking like "filename:linenumber:goo" and prints whatever context ...
>
>Almost, unless the original input was produced by a pipeline, in which
>case this (putative) post-processor can't help unless you tee the mess
>to a temp file, yup, mess is the right word.

How about:

alias with_context tee >/tmp/$$ | $* | context -f/tmp/$$

or something like that?  Does that offend tool-users sensibilities?
*Do* Neanderthals have any sensibilities?
-- 
signed char *reply-to-russ(int network) {	/* Why can't BITNET go	*/
if(network == BITNET) return "NELSON at CLUTX";	/* domainish?		*/
else return "nelson at clutx.clarkson.edu"; }



More information about the Comp.unix.wizards mailing list