Xref: utzoo comp.sources.wanted:16177 comp.unix.wizards:24722 comp.unix.questions:30178 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!wuarchive!udel!eplrx7!cristy From: cristy@eplrx7.uucp (John Cristy) Newsgroups: comp.sources.wanted,comp.unix.wizards,comp.unix.questions Subject: Re: Proximity Search Message-ID: <1991Apr8.170939.4882@eplrx7.uucp> Date: 8 Apr 91 17:09:39 GMT References: <1991Apr5.225455.2281@eplrx7.uucp> Sender: usenet@ee.udel.edu Followup-To: comp.sources.wanted Organization: DuPont Engineering Physics Laboratory Lines: 17 Nntp-Posting-Host: louie.udel.edu In article <1991Apr5.225455.2281@eplrx7.uucp> cristy@dupont.com writes: > I need a program to perform proximity search on a file of text. There seems to be two useful options for performing proximity searches: 1. Ed Vielmetti & Adrian Ho recommend lq-text (anonymous ftp from ftp.cs.toronto.edu). 2. Randal Schwartz recommends perl with this script: perl -ne 'print if /\bbig\b.{1,20}\bhouse\b' somefile Thanks all for your suggestions. cristy@dupont.com -- The UUCP Mailer