Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!sdd.hp.com!elroy.jpl.nasa.gov!decwrl!ucbvax!TRANSARC.COM!Dan_Bloch From: Dan_Bloch@TRANSARC.COM Newsgroups: comp.editors Subject: Re: DELIMITED search Message-ID: Date: 1 Nov 90 09:31:14 GMT References: <1990Oct29.134654.18929@cid.aes.doe.CA> Sender: daemon@ucbvax.BERKELEY.EDU Distribution: na Lines: 22 afsipmh@cidsv01.cid.aes.doe.CA (Pat Hertel) writes: > How, in general, can I do delimited searches in UNIX. i.e. How do I > search for say the string "the" without finding there their other > thesaurus...... From the shell, you can grep -w the. In vi or ex, you can search for \\. These don't have to be used together- "\" would match lathe. Now, the fun part. A really neat mapping to put in your .exrc is map ^R /\< map! ^R \>^M Since one of the mappings in in normal mode and the other is in insert mode, you can map both sequences to the same key. To search for the, you type ^Rthe^R. Easy on the fingers and on the memory. Dan Bloch dan@transarc.com