From: Jonathan Leighton Date: 2006-03-11T07:51:08+09:00 Subject: Re: An Array of grep Results? On Sat, 2006-03-11 at 07:32 +0900, Nathan Olberding wrote: > I want to search all the files in a directory for a string and save the > results in an Array. So far, the best solution I can come up with is > using system("grep ... > resultsFile"), then opening resultsFile and > doing readlines(). There's a better way, isn't there? Yep: Dir["/some/foo/directory/*"] ;) See the docs for Dir#glob -- Jonathan Leighton http://turnipspatch.com/ | http://jonathanleighton.com/ | http://digital-proof.org/