Xref: utzoo comp.unix.wizards:9431 comp.unix.questions:7632 Path: utzoo!attcan!uunet!mcvax!fmr From: fmr@cwi.nl (Frank Rahmani) Newsgroups: comp.unix.wizards,comp.unix.questions Subject: Re: Re: grep replacement Message-ID: <540@sering.cwi.nl> Date: 16 Jun 88 10:42:28 GMT References: <1148@mcgill-vision.UUCP> Organization: CWI, Amsterdam Lines: 22 > Xref: mcvax comp.unix.wizards:8598 comp.unix.questions:6792 > Posted: Fri Jun 10 05:29:43 1988 > > In article <8012@brl-smoke.ARPA>, gwyn@brl-smoke.ARPA (Doug Gwyn ) writes: > 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). ... ... that's the smallest of all problems, just include /dev/null as first file to be searched into your script like grep [options] pattern /dev/null one_or_more_filenames by the way I like the sed one-liner that was posted as answer to the grep replacement question. Why couldn't I think of it?:-) fmr@cwi.nl -- It is better never to have been born. But who among us has such luck? -------------------------------------------------------------------------- These opinions are solely mine and in no way reflect those of my employer.