OK,
Sorry to have to ask...I tried to delete this from the newbie thread but don't see where...
I am trying to move files and directories older than 'x' days from source to destination
For instance, if I have files and directories in:
/home/username/temp/
that are older than 20 days
and want to mv them to:
/home/username/OK
I am trying:
Code:
find /home/username/temp -maxdepth 4 -mtime +20 -exec mv "{}" /home/username/OK/ \;
When I run the above line, /home/username/temp no longer exists...
What am I doing wrong?
Thanks in advance, I apprecaite any help.
-AZFXDC