[comp.sources.wanted] Proximity Search

cristy@eplrx7.uucp (John Cristy) (04/06/91)

  I need a program to perform proximity search on a file of text.  For
  example, the search expression:
   
	 search big house

  returns

	big house
	big red house
	big and beautiful white house

  Please Email your recommendations.  And thanks in advance.

  cristy@dupont.com
--
The UUCP Mailer

cristy@eplrx7.uucp (John Cristy) (04/09/91)

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