From: Phil Rhoades Date: 2008-04-26T13:24:22+09:00 Subject: Re: Howto get array.agrep (NOT array.grep) On Sat, 2008-04-26 at 13:15 +0900, Phrogz wrote: > Phil Rhoades wrote: > > Is there some way to get agrep working with Ruby arrays? - agrep has > > some nice, useful features that grep doesn't . . > > Perhaps if you explained what this mysterious 'agrep' was, we might > help. > Something from another language? A unix utility? > > Give us a sample array, and what you'd like the result to be after > calling this method on that array. NAME agrep - print lines approximately matching a pattern SYNOPSIS agrep [OPTION]... PATTERN [FILE]... DESCRIPTION Searches for approximate matches of PATTERN in each FILE or standard input. Exam- ple: 'agrep -2 optimize foo.txt' outputs all lines in file 'foo.txt' that match "optimize" within two errors. E.g. lines which contain "optimise", "optmise", and "opitmize" all match. -- Philip Rhoades Pricom Pty Limited (ACN 003 252 275 ABN 91 003 252 275) GPO Box 3411 Sydney NSW 2001 Australia Fax: +61:(0)2-8221-9599 E-mail: phil@pricom.com.au