I have hundreds of images which I want to rename:
- Current name
A0619101
. Rename toA1906101
- Current name
A0825223
. Rename toA2508223
Actually the first and second digits must become third and fourth. And the third and fourth digits must become first and second.
Could you help me?
Best Answer
Assuming the current directory contains all files you wish to rename:
Take care: this algorithm cannot swap file names, so if you have files
A1122333
andA2211333
, then afterwards the second will be gone and the first will still be calledA1122333
(having be renamed twice).The following script fixes that issue: