Skip to content
Advertisement

Tag: file-rename

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: 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

Rename the filename using python

I have folder where I have multiple files. Out of this files I want to rename some of them. For example: PB report December21 North.xlsb, PB report November21 North.xslb and so on. They all have a same start – PB report. I would like to change their name and leave only PB report and Month. For example PB report December.

Advertisement