Hi,
Am using the below format for deleting folder archived for 'x' number of days, but it doesn't work?
delete=10
find $xyz -name "*arc" -mtime +$delete -type d -exec rm -rf {} +
It doesn't error out, but doesn't delete as well
on the path, I have folder as arc-2020-01-10
My script permission is 777 ( full read/write access )
Purpose: I want to delete all the archive folders more than 10 days old.
Thanks,
Am using the below format for deleting folder archived for 'x' number of days, but it doesn't work?
delete=10
find $xyz -name "*arc" -mtime +$delete -type d -exec rm -rf {} +
It doesn't error out, but doesn't delete as well
on the path, I have folder as arc-2020-01-10
My script permission is 777 ( full read/write access )
Purpose: I want to delete all the archive folders more than 10 days old.
Thanks,