Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remove Files By Date Range

Status
Not open for further replies.

Michael42

Programmer
Oct 8, 2001
1,454
US
Hello,

Using a Bourne shell script or commands how can I delete all files older that 30 days in a particular directory (/mydir)?

Thanks,

Michael42
 
man find
man xargs

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
If you search the FAQs (faq80-5793) you'll find an answer.

Columb Healy
 
Hello.

I have this implemented in unix, and i would like to do that in nt.

I am trying to do that with the gnu tools, but the find command does not exist (or i do not have them).

Is there other way?

Thanks any way...
DR
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top