From: Robert Klemme Date: 2009-05-14T03:35:08+09:00 Subject: Re: Newbie-Script for copying matching files to new destination 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 -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/