diff --git a/Create-a-Folder-for-Each-Movie.md b/Create-a-Folder-for-Each-Movie.md index 7ea206f..c1d07b7 100644 --- a/Create-a-Folder-for-Each-Movie.md +++ b/Create-a-Folder-for-Each-Movie.md @@ -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