Portal Home > Knowledgebase > Articles Database > How to remove files in folder which are created a year ago?


How to remove files in folder which are created a year ago?




Posted by KennyP, 10-07-2005, 12:10 PM
How to find and remove/delete files which are created before a year ago in each folder? How to do it in SSH? Thanks.

Posted by artofmobile, 10-07-2005, 12:54 PM
Do you want to achieve that under unix or unix friendly environment or Window? As you use the word "folder", I believe you want to achieve this in a Window environment? Last edited by artofmobile; 10-07-2005 at 01:01 PM.

Posted by KennyP, 10-07-2005, 01:16 PM
I'm under unix environment, I had just found what I want on google. Anyway, thanks for your help

Posted by artofmobile, 10-07-2005, 01:24 PM
No worry, I didn't help. Since you are using unix, most likely you are using find with mtime parameter then pipe the result to rm.

Posted by ByteMaster, 10-07-2005, 03:26 PM
Excellent idea! Making note of this one.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
mysql tuning? (Views: 675)

Language: