in reply to renaming files
If you want a one-liner, you could use the rename command (implemented in Perl) that is already installed on many systems.