find command to move the files to other folder - ksh 88

Hi ,

I've learnt that the following command will remove the files from the given folder for given no.of days

find /home/etc -type f -atime -10 -exec rm -f {} \;

But how can I change the above command that will move the files to another specified directory instead of removing the files .

Thank You

find /home/etc -type f -atime -10 -exec mv {} /other/directory \;
1 Like