From: Michael Linfield Date: 2007-08-16T14:18:36+09:00 Subject: Re: grep a csv? Alex Gutteridge wrote: > On 16 Aug 2007, at 13:29, Michael Linfield wrote: > >> data from, then at the end of the program delete Blah1.csv ? > Sure, use tempfile, but I think botp has shown why you don't really > need the temporary file (unless there's part of this problem I'm not > understanding): the reason im going to use a tempfile is because thers going to be a per'se blah2 blah3 ect. So im storing the grep from blah1, blah2, and blah3 in different files so i can later pull the data from those files to graph each line with ruport. each line will represent Blah1 Blah2 Blah3 ect. So unless i can shove the grep output into an array, and each line be an element, ive gotta use a tempfile. Maybe theres a better way? If thers a better approached im all ears :D Thanks a ton btw, you all have been a tremendous help. -- Posted via http://www.ruby-forum.com/.