Page 1 of 1

rename file

Posted: 19 Jun 2016, 03:12
by tyty63
Hi guys,

I would like to extract in the same directory and rename the file with the folder name.
For extract I do this :

Code: Select all

tmp/filebot.sh -extract /data/dl/0.SCENE/uploads/test_unpack/Assassination.Classroom.S02.E21.SUBFRENCH.1080p.WEBRip.X264-TOTO--output /data/dl/0.SCENE/uploads/test_unpack/Assassination.Classroom.S02.E21.SUBFRENCH.1080p.WEBRip.X264-TOTO
It work nice, but the file inside the archive has a different name : sf-acs02e21web1080p.mkv

Edit I forget can we delete all rar after extract ?

I don't find the "good" command to rename the file with folder name, how can i do that ?

thanks :)

Re: rename file

Posted: 19 Jun 2016, 04:07
by rednoah
You can script that in bash yourself. The -extract command doesn't support the behaviour you want.

For a more out-of-the-box solution, please have a look at the amc script.