I have a lot of images in subdirectories with same string in filename and I want to rename these files and append a suffix to their names. Example: I want to rename this files in How can I do this in bash or python? Which image get 01,02,03 doesn’t matter. Answer Hopefully I understood what you wanted correctly. But heres