On Saturday 22 December 2001 00:27, you wrote:
> BAA> am trying to write a script that will read in all the file names in
> dir X BAA> and convert the upper case letters to lower case. How can do
> such thing in
you could also use 
newname=filename.downcase

> Perhaps better ways, but this works for me:
>
> dir = "."
> Dir.foreach(dir) {|filename|
>   newname = filename.tr('A-Z','a-z')
>   File.rename(filename, newname) if newname != filename
> }
>
> regards,
> -joe

-- 
Armin.

-----------------------------------------------
Armin Roehrl, http://www.approximity.com