rename file

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
tyty63
Posts: 1
Joined: 19 Jun 2016, 03:06

rename file

Post 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 :)
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: rename file

Post 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.
:idea: Please read the FAQ and How to Request Help.
Post Reply