I've a series of media files I'm trying to rename en mass.
001 - 01x01 - mediaTitle1.avi
002 - 01x02 - mediaTitle2.avi
003 - 01x03 - mediaTitle3.avi
What I'd like is to output:
Series Title S01 E01 - mediaTitle1.avi
Series Title S01 E02 - mediaTitle2.avi
Series Title S01 E03 - mediaTitle3.avi
I'm trying this:
for f in *01x*; do echo mv -v "$f" "Series Title S01 E{f#1}"; done
But it's failing. So I want to keep the end of the file and replace the beginning for each file
rename
command. Filenames have spaces?