🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.editors
Article #1277

Re: DELIMITED search

#1277
From: John DuBois
Date: Sun, 02 Dec 1990 02:32
16 lines
1178 bytes
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 [ <tab>] (space followed by tab in
brackets) if you want to include it as a delimiter.

	John DuBois
	spcecdt@deeptht.santa-cruz.ca.us
Technical Details
Message-ID: <107@deeptht.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!sco!gorn!deeptht!spcecdt
References: <1990Oct29.134654.18929@cid.aes.doe.CA# <1092@vm.ucs.UAlberta.CA> <339@tslwat.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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