I just noticed that all my old photos on my backup are stored in some different directory naming conventions than my newer ones and renaming everything by hand... well lets just say that there is 1000 plus directories that needs fixing and I've let myself become extremely rusty in scripting
Does anyone have time on their hands to write a small script that mass renames them for me?
What I got:
(YEAR) XXX YYY
XXX YYY (YEAR)
How they should be named:
YEAR - XXX YYY
(2001) International Space Station (ISS)
My Dark Basement (1984)
2001 - International Space Station (ISS)
1984 - My Dark Basement
There's a few [ ] and dashes in the directory names too I think (they don't need changing - just a warning if it messes with the script). The files are fine too (DDMMYYYY.xxx) so it's just the directories that need fixing. I tried googling but only found file mass renaming.
It's on a headless server, so no GUI tools