Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Q] fuzzy grep?



>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




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org