General discussion

Locked

Perl HP-UX

By kleeusmale ·
Hi,
I need help with some Perl scripting.
I need to perform diskspace cleanup.
I have :
(A) text file containing file to be deleted
e.g. File1
File2
File3
File1 could have more than one folders. Same as File2 & File3.
Based on this text file, I need to search through all folders with File1, File2, File3 and remove the folders if all the files in the folder is more than year old. (i.e. If one folder of File1 has one file less than a year old, then I skip to the next file, File2. If one folder of File2 contains all files more than a year,but another folder of File2 with files less than a year, I skip to File3. Only if all the folders with all files in File3 are less than a year I need to remove.

Is this doable with Perl?

This conversation is currently closed to new comments.

0 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Back to Laptops Forum
0 total posts (Page 1 of 1)  

Related Discussions

Related Forums