[Q] fuzzy grep?

John Saylor jsaylor at MIT.EDU
Tue May 30 08:36:06 EDT 1995


>I need what could be described as a fuzzy grep.
>I need a pattern matcher, but it needs to make
>allowances for exchanges of characters, missing, incorrect,
>and extra characters and, if possible, give
>a list of likely candidates.

You can do all this with grep.  It depends how much time you want to
take figuring out what you can do with "regular expressions".

It may mean that you make a few passes at your data stream as well:

cat data | grep [first pass reg ex] > data1
cat data1 | grep [2nd pass reg ex] > data2
&c.

And perl might also be a good tool for this.


Good Luck!

\jsaylor



More information about the Discuss mailing list