I am looking to optimize this find command. We have to move a bunch (sometimes almost a million) files to a directory for further processing. We are looking for a way to increase the speed of this command as it can take hours to run with a large amount of files. The problem is we need the files to be at least 1 minute old before moving them as we don't want to move ones that could still be being written to.find path -name *.cdr.xml -mmin +1 -exec mv {} /pathEdit: This command is being ran as a part of a python script and we MUST wait for all the files to be found and moved prior to continuing on with the python script. All the file names are UUID's.
Optimize/Replace 'find' command
ubuntu;find;optimization