First off, I am a terminal noob on Mint 2.2. What I am attempting to do is to find and move large amount of image files from one BU drive to another drive. There is a top folder and multitudes of sub-folder. This is the script I came up with from several older posts from this site:
find /media/rudolf3577/RAID-IMAGES/Move-From -type f \( -iname ".jpg" -o -iname ".jpeg" -o -iname ".png" -o -iname ".bmp" -o -iname "gif" -o -iname "tif" \) -exec mv {} /media/rudolf3577/CLEAN-PICS \;
The from and to dir show in the GUI and in the terminal but when I run this sh file I garnish this error message:
root@Little-Mint:/media# sh pic-find.sh
find: ‘/media/rudolf3577/RAID-IMAGES/KW-LT-Pic-10-04-2024/Move-From’: No such file or directory
I garnish the same error when run as user. I attempted to run this sh from / and right down to the last dir listed in the from portion from each respective dir with the sh file located in the dir I was running it from.
I tested the script on two folders on the desktop, one holding images and the other the receiving folder - the script ran spot on. I the plugged in the path to the larger drives and the error above popped up. What did I mess up?
find /media/rudolf3577/RAID-IMAGES/Move-From -type f \( -iname ".jpg" -o -iname ".jpeg" -o -iname ".png" -o -iname ".bmp" -o -iname "gif" -o -iname "tif" \) -exec mv {} /media/rudolf3577/CLEAN-PICS \;
The from and to dir show in the GUI and in the terminal but when I run this sh file I garnish this error message:
root@Little-Mint:/media# sh pic-find.sh
find: ‘/media/rudolf3577/RAID-IMAGES/KW-LT-Pic-10-04-2024/Move-From’: No such file or directory
I garnish the same error when run as user. I attempted to run this sh from / and right down to the last dir listed in the from portion from each respective dir with the sh file located in the dir I was running it from.
I tested the script on two folders on the desktop, one holding images and the other the receiving folder - the script ran spot on. I the plugged in the path to the larger drives and the error above popped up. What did I mess up?
Last edited:

