I'm trying to insert certain characters into music files to rename them in a certain way within directories that have many files, so doing this manually is very time consuming and I would like to automate this process using the terminal or a bash script.
As this is a music collection there are many files, over many directories.
I have tried a few 'awk', 'rename' & 'sed' terminal options but I seem to be getting really crazy output in the terminal (possibly due to spaces & or punctuation) and I have to Ctrl+z to stop the job or it just errors out. Also tried 'Krename' & 'Easytag' with no luck.
For example, I want to change:
Chicane - Behind the Sun - 01 Overture.mp3
Chicane - Behind the Sun - 01 - Overture.mp3
So at column or position 31 I want to add '- ' to change the filename, but there are 10 more files within this folder and there are many more, other folders (albums) I want to change so the position and the characters I want to add will vary.
My bash/scripting skills are 101, I've managed some backup scripts using compression and other easy tasks but this is beyond me at the moment, any help would be appreciated.
I know this is a duplicate but I have tried many options without success but I'm learning and with your help a solution is at hand, so a Thanks in advance to you.