Code: Select all
find . -mindepth 2 -type f -iname '*.srt' -exec sh -c 'mv -i "$1" "${1%/*/*}"' sh {} \;
I know where I need to place the line of code, but I am not sure how to configure it to be ran in the recently downloaded files directory. I tried
Code: Select all
find %R -mindepth 2 -type f -iname '*.srt' -exec sh -c 'mv -i "$1" "${1%/*/*}"' sh {} \;