unknown wrote: > Hi, > > At Mon, 16 Oct 2006 13:31:18 +0900, > Snoopy Dog wrote in [ruby-talk:219939]: >> > newname = path.sub('longfilename - 0', '0') > >> Same ERROR. > > Are you sure there is no exclamation mark? I had originally missed that. With some additional "puts" statements I found that mistake. Still errored out. Went back and tried the File.rename and now it works. I think it might have needed the 'require "fileutils"' statement. Frustrating, but now working. THANKS TO ALL WHO HELPED OUT. Snoopy -- Posted via http://www.ruby-forum.com/.