Proximity Search

John Cristy cristy at eplrx7.uucp
Tue Apr 9 03:09:39 AEST 1991


In article <1991Apr5.225455.2281 at eplrx7.uucp> cristy at 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 at dupont.com
--
The UUCP Mailer



More information about the Comp.unix.wizards mailing list