The suffix code looks like it's trying to add a suffix after the .rar extension and adding a .rar to the entire file name after the suffix.

No idea though, on why the rename fails. I haven't tried it.
Lifetalk Reviewed by Lifetalk on . Renaming Multiple Files in SSH need a little help with renaming multiple files.... I can batch rename files to add Prefixes or replace blank spaces to underscores... but what I am unable to do is to add suffixes to all the files in a directory I have files such as filename.rar filename2.rar filename3.rar Rating: 5