You are not logged in.

#1 2015-05-23 17:41:46

andya
Member
Registered: 2014-10-20
Posts: 10

A simple python3 mass file/dir renamer for the cli

Hi fellow archers!

I released a simple script for mass file/renaming of files; it provides some interesting feature (incremental numbering, name cleaning, use parent dir name, replace patterns) and can be used together with ranger file manager to apply it to selection.

Check it out on github!

https://github.com/andya9/pyrenamer/tree/master


(I tested it a lot and use it nearly daily on important file; but as always, try it safely first! an option to only *show* expected output is provided)

UPDATE: I did a major rewrite. Now renaming is quick and efficient:
If we have:

photos/{DGSHFGRERXDFF_000005.jpg,DGSHFGRERXDFF_000006.jpg, and so on}

and we want:
photos/{photos_seaside-05.jpg, photos_seaside_06.jpg, and so on}

we just call:
pyrenamer.py -r %p_seaside-%05 .+

Last edited by andya (2015-07-06 13:57:00)

Offline

Board footer

Powered by FluxBB