For Powershell in Windows I’ve been using:
set source=[source drive]
set destination=[destination drive]
robocopy %source% %destination% /mov *.plot /xx
timeout /t 60
How can one duplicate this using a Bash script in Ubuntu?
So far I have:
for (( ; ; ))
mv mnt/Temp1/*.PLOT [destination directory]
Is there a better way to script this? Not concerned about duplicating the set command from PS, but wondering if the “for” loop is best and whether “sleep 60” will work as intended (check and move every minute).
Would also be nice if a new terminal session pops open when executing the script.