Skip to content
Advertisement

How to rename files with same string and add suffix

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:

JavaScript

I want to rename this files in

JavaScript

How can I do this in bash or python? Which image get 01,02,03 doesn’t matter.

Advertisement

Answer

Hopefully I understood what you wanted correctly. But heres how to do it below.

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement