1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2024-12-23 00:12:44 +00: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) 5. Each movie will be in its' own folder. ![](https://i.imgur.com/iawRm8o.jpg)
# Linux # Linux
```sh ```sh
cd /path/to/your/movies/files/ 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 # Windows & Linux