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.
parent
0cc0e36419
commit
1e4c45327f
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue