Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!lsuc!dave From: dave@lsuc.UUCP Newsgroups: comp.unix.wizards Subject: Re: bm in Less ? Message-ID: <1647@lsuc.UUCP> Date: Wed, 18-Mar-87 09:06:54 EST Article-I.D.: lsuc.1647 Posted: Wed Mar 18 09:06:54 1987 Date-Received: Thu, 19-Mar-87 05:57:33 EST References: <1348@umn-cs.UUCP> <806@nrcvax.UUCP> Sender: root@lsuc.UUCP Reply-To: dave@lsuc.UUCP (David Sherman) Distribution: na Organization: Law Society of Upper Canada, Toronto Lines: 22 Summary: mv bm bgrep In article <806@nrcvax.UUCP> chris@minnie.UUCP (Chris Grevstad) writes: >By 'bm' I assume you mean the Boyer-Moore grep utility. When was the last >time instead of typing 'bm pattern *.c' you typed 'rm pattern *.c'? ...which is why I renamed it "bgrep" here. Incidentally, two comments about bm. One is that the manual alleges you can search for multiple patterns, but I can't seem to get it to work. (The manual talks about newline-separated patterns, but $ bgrep 'pat1 > pat2' *.c seems to find only pat2. The other is,I wonder whether ^ and $ could be implemented quite easily within bm, essentially by mapping them into \n. That would let bgrep "^name" /etc/passwd, for example, work fast (we have 2,000 entries in our /etc/passwd). David Sherman -- { seismo!mnetor cbosgd!utgpu watmath decvax!utcsri ihnp4!utzoo } !lsuc!dave