From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,168f70437720679e X-Google-Attributes: gidfa528,public From: Joerg Bruehe Subject: Re: delete "very" old files Date: 2000/09/27 Message-ID: <39D21491.8EE08C19@sql.de>#1/1 X-Deja-AN: 674764534 Content-Transfer-Encoding: 7bit References: <8qsb8g$4pl$1@news0.skynet.be> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: news@news.sql.de X-Trace: news.sql.de 970069137 23073 194.64.230.128 (27 Sep 2000 15:38:57 GMT) Organization: SQL Datenbanksysteme GmbH Mime-Version: 1.0 NNTP-Posting-Date: 27 Sep 2000 15:38:57 GMT Newsgroups: comp.unix.tru64 Hello ! Daniel Willems wrote: > > Hello, > > Since I'm new to Unix I need some help. Convince your company you need a course if you are to admin a system - nobody is a "born admin", whatever marketing claims about "ease of use". > > Our application generates temporary files and never deletes them. No comment - to avoid being sued for insults. > This is filling up our disks and them the application crashes. "Works as designed" differs from "Works as intended", obviously. Also sounds like lack of testing before / at delivery. > > Therefor I'm looking for a script that deletes the tmp-files which are older > than 1 week. RTFM: shell programming, pipes, builtin "xargs"; "find" find /where/they/are -type f -name some_pattern_* -mtime +7 | xargs rm -i This sure is a Unix FAQ, try "Deja" for more hints or ready solutions. Keywords might be "cleanup", "temp" "files", "disk full", or similar. HTH, Joerg Bruehe -- Joerg Bruehe, SQL Datenbanksysteme GmbH, Berlin, Germany (speaking only for himself) mailto: joerg@sql.de