The How-To Geek Forums Have Migrated to Discourse

How-To Geek Forums / Linux

How to zip files in folders older than x day?

(1 post)
  • Started 7 years ago by alicegeek
  • Topic Viewed 1334 times


Recommended: Clean Your PC the Easy Way with CleanMyPC

If you want to clean up your PC the easy way, CleanMyPC is a great tool to get the job done easily, and it will even keep your computer clean automatically.

Unlike the competition, it also includes great tools like a Clean Uninstaller, to get rid of applications and clean up the junk that they leave behind. All with the click of a button.

Download CleanMyPC for Free Today

Posted yesterday 
Posts: 1

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.

Posted 7 years ago

Topic Closed

This topic has been closed to new replies.