kateinseattle
MIS
Can anyone help me out with this?
I would like to run a cron job that will periodically move all files in a specified directory, to a seperate folder ...if the files were created above a specified date.
What I have so far is:
find ${directory} -name fimename.* -ctime +60 -exec mv {} \ archive/;
In the above scipt, I was hoping to move all files above 60 days old, with name pattern filename.*, to the directory 'archive'.
But no dice, the script does not work. It comes back as 'incomplete statement'.
Can anyone help point out where I have erred?
I would like to run a cron job that will periodically move all files in a specified directory, to a seperate folder ...if the files were created above a specified date.
What I have so far is:
find ${directory} -name fimename.* -ctime +60 -exec mv {} \ archive/;
In the above scipt, I was hoping to move all files above 60 days old, with name pattern filename.*, to the directory 'archive'.
But no dice, the script does not work. It comes back as 'incomplete statement'.
Can anyone help point out where I have erred?