in reply to rename doesn't work on OSX?

If all else fails you should be able to use your OS's rename function via an exec , system , or `rename $file1 $file2` (backtick) workaround... I'd use that only as a last resort though...