75lb / renamer

Rename files in bulk.
MIT License
526 stars 30 forks source link

Adding Suffix #26

Closed drwpcom closed 6 years ago

drwpcom commented 7 years ago

I'm trying to use Renamer to add a 16-17 suffix to all files and folders, recursively as the files go several levels deep.

$ renamer --regex --find '([^.]+)\.(.*?)' --replace '$1 16-17.$2' '**'

seems to work for files, but I haven't been able to come up with a solution for folders that doesn't also affect files, after the extension.

Suggestions/advice would be greatly appreciated.

75lb commented 7 years ago

so you want a way to rename only folders and not files?

drwpcom commented 7 years ago

I would like to add the suffix to both the file names and the folder names.