Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!snorkelwacker.mit.edu!ai-lab!life!tmb From: tmb@bambleweenie57.ai.mit.edu (Thomas M. Breuel) Newsgroups: comp.editors Subject: Re: DELIMITED search Message-ID: Date: 3 Dec 90 00:03:47 GMT References: <1990Oct29.134654.18929@cid.aes.doe.CA# <1092@vm.ucs.UAlberta.CA> <339@tslwat.UUCP> <107@deeptht.UUCP> Sender: news@ai.mit.edu Distribution: na Organization: MIT Artificial Intelligence Lab Lines: 19 In-reply-to: spcecdt@deeptht.santa-cruz.ca.us's message of 2 Dec 90 02:32:44 GMT In article <107@deeptht.UUCP> spcecdt@deeptht.santa-cruz.ca.us (John DuBois) writes: In article <1990Oct29.134654.18929@cid.aes.doe.CA>, afsipmh@cidsv01.cid.aes.doe.CA 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...... AND including "the" at the beginning and end of a line > eh? Use the RE /\/. This _is_ documented... I just began getting comp.editors so I don't know if this has been noted yet, but in egrep (and other text processing utilities that understand egrep-style expressions) you can search for (^| )the( |$) But not in VI. You can replace the spaces with [ ] (space followed by tab in brackets) if you want to include it as a delimiter. Brought to you by Super Global Mega Corp .com