From: Os Ai Date: 2009-05-14T03:43:26+09:00 Subject: Re: Newbie-Script for copying matching files to new destinat Robert Klemme wrote: > On 13.05.2009 19:21, Os Ai wrote: >> Being new to Ruby,am not sure if it can do these but if it can then >> someone please help.My challenge is that I want to copy certain files >> from a source location with filenames containing words listed in a text >> file to a new location. Any help would be most appreciated.Thanks in >> advance. > > I am not sure what you are asking for... How about: > > 1. read words from file > 2. enumerate all files in the source location and check each name for a > match > 3. if there is a match copy the file from source to target > > Cheers > > robert Hi Robert, Yes you got it. I guess you know how to speak 'programming' which I obviously don't.So how do I go about it? -- Posted via http://www.ruby-forum.com/.