in reply to file compare and renaming

See Larry's famous rename script, Unix rename faq (a version of Larry's script is given at the end), and the Perl Cookbook, recipe 9.9.