2016-08-26, 14:12
I have been working on a script to rename TV shows using bash.
example of a badly named file - Breaking.Bad.S01E01.576p.BluRay.DD5.1.x264-HiSD.mkv
I want to run a script that will rename all files in a folder to be S01E01.mkv etc
I have been manually using
But this is tedious when doing it all manually, I would like to just use
Then run a script that renames all the files to the format S01E01.mkv and so on for each file.
---------------------
See below for completed and working script. Feel free to use and share
example of a badly named file - Breaking.Bad.S01E01.576p.BluRay.DD5.1.x264-HiSD.mkv
I want to run a script that will rename all files in a folder to be S01E01.mkv etc
I have been manually using
Code:
cp Breaking.Bad.S01E01.576p.BluRay.DD5.1.x264-HiSD.mkv /mnt/2tb_hd/TV_Shows/Breaking\ Bad/S01E01.mkv
But this is tedious when doing it all manually, I would like to just use
Code:
cp *.mkv /mnt/2tb_hd/TV_Shows/Breaking\ Bad/
Then run a script that renames all the files to the format S01E01.mkv and so on for each file.
---------------------
See below for completed and working script. Feel free to use and share