I'm running under Centos Linux.
I have this folder /test/production. In this folder new folders are created when my application is running. The newly created folders contain a number of files.
I would like to compress the files in the folders (folder1, folder2) that are older x days.
In fact, the aim is to delete the newly created folders after a number of days.
Could you please also tell me how to delete those folders containing the compressed files that are older than y days?
Could you please help me?
Thank you very much for any suggestions.