Path: utzoo!attcan!uunet!munnari!moncskermit!goanna!yabbie!rcodi From: rcodi@yabbie.rmit.oz (Ian Donaldson) Newsgroups: comp.unix.wizards Subject: Re: grep replacement Message-ID: <779@yabbie.rmit.oz> Date: 30 May 88 04:08:10 GMT References: <3324@phri.UUCP> Organization: RMIT Comm & Elec Eng, Melbourne, Australia. Lines: 15 From article <3324@phri.UUCP>, by roy@phri.UUCP (Roy Smith): > It would certainly speed up things like > > grep "^Subject: " /usr/spool/news/comp/sources/unix/* > where I know that the pattern is going to be matched in the first few lines > and don't want to bother searching the rest of the multi-killoline file. A simple permutation: head -60 /usr/spool/news/comp/sources/unix/* | grep "^Subject: " works fairly close to the mark, and doesn't waste much time at all. Ian D