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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Removing files/folders based upon date

Status
Not open for further replies.

MCubitt

Programmer
Mar 14, 2002
1,081
GB
Using the following:

find "/oracle/tle/xlate/d" -mtime +15 -exec rm -f "{}" \;

I can delete files which are older than 15 days (or is it older than 14?).

However, how can I also delete folders/subfolders ?

Thanks





There's no need for sarcastic replies, we've not all been this sad for that long!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top