From: Idealone Ideally Date: 2009-04-13T13:19:53+09:00 Subject: get files by its extension Hi Guys, I want to download certain file types or certain files by its name using ruby code. example: In Shell scripting, I can say cp *.txt, which inturn copies all files with extension ".txt", similarly i can say cp test* , all files with the string "test" are copied. I want to achieve similar tasks using ruby code, as i am novice using ruby. My purpose is that i am connecting to my Linux server through ftp and trying to download files with certain extension. Let me know if any more info is required from my end cheers Thanks in Advance -- Posted via http://www.ruby-forum.com/.