From chemistry-request # - at - # server.ccl.net Wed Jun 23 21:06:13 1999 Received: from admin.cnrs-orleans.fr (admin.cnrs-orleans.fr [163.9.1.2]) by server.ccl.net (8.8.7/8.8.7) with ESMTP id VAA18907 for ; Wed, 23 Jun 1999 21:06:11 -0400 Received: from chinon.cnrs-orleans.fr (chinon.cnrs-orleans.fr [163.9.6.107]) by admin.cnrs-orleans.fr (8.8.8/jtpda-5.3) with ESMTP id QAA20098 ; Wed, 23 Jun 1999 16:52:14 +0200 (MET DST) Received: (from hinsen-!at!-localhost) by chinon.cnrs-orleans.fr (8.8.7/8.8.7) id QAA06323; Wed, 23 Jun 1999 16:50:24 +0200 Date: Wed, 23 Jun 1999 16:50:24 +0200 Message-Id: <199906231450.QAA06323 ^at^ chinon.cnrs-orleans.fr> X-Authentication-Warning: chinon.cnrs-orleans.fr: hinsen set sender to hinsen[ AT ]cnrs-orleans.fr using -f From: Konrad Hinsen To: mculf*- at -*mta.ca CC: chemistry _-at-_)ccl.net In-reply-to: <1.5.4.16.19990622154342.74b70018 "-at-" mailserv.mta.ca> (message from Miroslava Culf on Tue, 22 Jun 1999 15:42:41 -0300 (ADT)) Subject: Re: CCL:Deleting files References: <1.5.4.16.19990622154342.74b70018 \\at// mailserv.mta.ca> > I need a program for Unix environment that would automatically delete all > files in certain directories that are older then, i.e. last used longer then > some time ago (for example 1 month). Unix already provides all you need: find directory -atime +30 -exec rm \{\} \; I didn't test this, but you can easily check the details using "man find" on your machine. "-atime +30" means "last accessed 30 or more days ago". -- ------------------------------------------------------------------------------- Konrad Hinsen | E-Mail: hinsen ^at^ cnrs-orleans.fr Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-2.38.25.55.69 Rue Charles Sadron | Fax: +33-2.38.63.15.17 45071 Orleans Cedex 2 | Deutsch/Esperanto/English/ France | Nederlands/Francais -------------------------------------------------------------------------------