From: "Jesús Gabriel y Galán" Date: 2013-05-20T18:05:34+09:00 Subject: Re: Rename multiple files On Mon, May 20, 2013 at 10:53 AM, Eivinas Norusaitis wrote: > Hi, > > Could anyone help me in writing a code which could replace file names > letters to lowercase and spaces to dashes? For example: > > Ruby Forum to ruby-forum > Take a look at to rename a file: http://ruby-doc.org/core-2.0/File.html#method-c-rename and to calculate the new name: http://ruby-doc.org/core-2.0/String.html#method-i-tr and/or http://ruby-doc.org/core-2.0/String.html#method-i-gsub and http://ruby-doc.org/core-2.0/String.html#method-i-downcase Hope this helps, Jesus.