From 9f76511be8fad198d4657bd9839724beda1d8f52 Mon Sep 17 00:00:00 2001 From: Devin Buhl Date: Sun, 22 Jan 2017 15:00:45 -0500 Subject: [PATCH] add linux cmd --- How-to-Create-a-Folder-for-Each-Movie..md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/How-to-Create-a-Folder-for-Each-Movie..md b/How-to-Create-a-Folder-for-Each-Movie..md index aec38f1..3a4e5c5 100644 --- a/How-to-Create-a-Folder-for-Each-Movie..md +++ b/How-to-Create-a-Folder-for-Each-Movie..md @@ -1,3 +1,5 @@ +# Windows + I used a program called [Files 2 Folder](http://skwire.dcmembers.com/fp/?page=files-2-folder) to make my movie library visible for import into Radarr, extract the zip to your computer and run the .exe as administrator, then click yes to add it to your right click menu. 1. Browse to your movie folder @@ -10,3 +12,8 @@ I used a program called [Files 2 Folder](http://skwire.dcmembers.com/fp/?page=fi 5. Each movie will be in its' own folder. ![](https://i.imgur.com/iawRm8o.jpg) +# Linux + +```sh +find . -name "*.mkv" -exec sh -c 'mkdir "${1%.*}" ; mv "$1" "${1%.*}" ' _ {} \; +```