Xref: utzoo comp.unix.wizards:9225 comp.unix.questions:7506 Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!mailrus!tut.cis.ohio-state.edu!bloom-beacon!mcgill-vision!mouse From: mouse@mcgill-vision.UUCP (der Mouse) Newsgroups: comp.unix.wizards,comp.unix.questions Subject: Re: grep replacement Message-ID: <1148@mcgill-vision.UUCP> Date: 10 Jun 88 09:29:43 GMT References: <136@rubmez.UUCP> <449@happym.UUCP> <7944@alice.UUCP> <8012@brl-smoke.ARPA> Organization: McGill University, Montreal Lines: 20 In article <8012@brl-smoke.ARPA>, gwyn@brl-smoke.ARPA (Doug Gwyn ) writes: > In article <7944@alice.UUCP> andrew@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 ... > Heavens -- a tool user. I thought that only Neanderthals were still > alive. I guess Bell Labs escaped the plague. A real useful `tool', this, that works only on files. And only when you grep more than one file, so you get filenames (or happen to be able to remember which flag it is to make grep print filenames always, assuming of course that your grep has it). Besides, grep has the context, or could have if it wanted to bother saving it. Why read all two hundred thousand lines of the file *again*? Wasn't it bad enough the first time? der Mouse uucp: mouse@mcgill-vision.uucp arpa: mouse@larry.mcrcim.mcgill.edu