Hi
Somethings not working correctly it's moving files that are not in the file of recordings to copy.
Code:
while read file
do
echo "$file" >> /home/temp/echo.txt
find /home/**/recordings -name "*$file" -exec cp "{}" /home/temp \;
done < /media/recordings/Move.txt
Remove the * before $FILE. That may be the cause of your problem.
Code:
while read file
do
echo "$file" >> /home/temp/echo.txt
find /home/**/recordings -name "$file" -exec cp "{}" /home/temp \;
done < /media/recordings/Move.txt
/home/**/recordings/. This may also be a problem depending on your directory structure.
Kind regards
Bookmarks