Search found 1 match

by Ectholian
January 9th, 2014, 2:25 am
Forum: Post-Processing Scripts
Topic: Script to move all files under the movie folder
Replies: 6
Views: 5865

Re: Script to move all files under the movie folder

find "$1" -mindepth 2 -type f -exec mv "{}" "$1" \; $1 is the full path to the directory where the movie is downloaded (the folder where you want your .mkv) -mindepth 2 is needed so the command don't execute for the current dir, which would make an endless loop -type f ...