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

PARTNER SPOTLIGHT

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 
Top
alicegeek
Posts: 1

Hello,
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.
/test/production/new_folder1/file1
/test/production/new_folder1/file2

/test/production/new_folder2/file3
/test/production/new_folder2/file4

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.
Alice

Posted 7 years ago
Top
 



Topic Closed

This topic has been closed to new replies.