Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!sco!gorn!deeptht!spcecdt From: spcecdt@deeptht.santa-cruz.ca.us (John DuBois) Newsgroups: comp.editors Subject: Re: DELIMITED search Message-ID: <107@deeptht.UUCP> Date: 2 Dec 90 02:32:44 GMT References: <1990Oct29.134654.18929@cid.aes.doe.CA# <1092@vm.ucs.UAlberta.CA> <339@tslwat.UUCP> Reply-To: spcecdt@deeptht.santa-cruz.ca.us (John DuBois) Distribution: na Organization: The Armory Lines: 14 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? 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( |$) You can replace the spaces with [ ] (space followed by tab in brackets) if you want to include it as a delimiter. John DuBois spcecdt@deeptht.santa-cruz.ca.us Brought to you by Super Global Mega Corp .com