1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-10-02 14:17:19 +02:00

Update linux shell script to only apply to files (not directories ending in .mkv and to be case insensitive.

Kristian Matthews 2020-09-02 19:23:15 +01:00
parent 0cc0e36419
commit 1e4c45327f

@ -30,10 +30,9 @@ I used a program called [Files 2 Folder](http://www.dcmembers.com/skwire/downloa
5. Each movie will be in its' own folder. ![](https://i.imgur.com/iawRm8o.jpg)
# Linux
```sh
cd /path/to/your/movies/files/
find . -maxdepth 1 -name "*.mkv" -exec sh -c 'mkdir "${1%.*}" ; mv "${1%}" "${1%.*}" ' _ {} \;
find . -maxdepth 1 -type f -iname "*.mkv" -exec sh -c 'mkdir "${1%.*}" ; mv "${1%}" "${1%.*}" ' _ {} \;
```
# Windows & Linux