I have a file that is inside every user home directory on my system that I need to have moved every month, and can not figure out how to do so. Currently I am trying to use "find" to do so, here is what I am trying that does not work:
find /home/ -type f -exec mv badmail badmail.old \;
that does not work, but it was my original idea that I would put that command into a cron job, and it would run every month to rotate the file(s).
Any ideas??
--Bryan
find /home/ -type f -exec mv badmail badmail.old \;
that does not work, but it was my original idea that I would put that command into a cron job, and it would run every month to rotate the file(s).
Any ideas??
--Bryan