I run OS X and have multiple photos and started naming them xyz-100.jpg, xyz-101.jpg, xyz-102.jpg up to xyz-402.jpg and now want to rename them by basically reducing the number by 99, making it xyz-1.jpg, xyz-2.jpg up to xyz-303.jpg.
I know I can use the mv command for that, but I don't seem to be able to implement a variable into the filename, such as xyz-$reduced.jpg. How can I properly do that?