Changing multiple filenames with a script
I hava a directory that contains around 200 files with the following naming scheme: CCTP.asm, CCAS.asm, etc. I want to change all of those file names to CCTP40.asm, CCAS40.asm, etc. Basically, I want to add 40 to the end of each file name.
How can I do this in a simple script?
Thanks in advance