Search found 2 matches

by DrSeussFreak
Tue May 11, 2021 1:37 am
Forum: Docker
Topic: Command to move subtitles
Replies: 1
Views: 242

Re: Command to move subtitles

My directory structure is as follows

/dl/done/1/name.1080p.year/Subs
/dl/script/script_name.sh

I changed my script to the following

Code: Select all

find /dl/done -mindepth 4 -type f -iname '*.srt' -exec sh -c 'mv -i "$1" "${1%/*/*}"' sh {} \;
and now, everything is working as expected
by DrSeussFreak
Mon Apr 26, 2021 1:14 am
Forum: Docker
Topic: Command to move subtitles
Replies: 1
Views: 242

Command to move subtitles

I want to execute the following command find . -mindepth 2 -type f -iname '*.srt' -exec sh -c 'mv -i "$1" "${1%/*/*}"' sh {} \; once a download finishes, so the subtitles stores in the "/downloads/movies/Subs/" directory are moved to the "/downloads/movies/" d...