Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: how to purge the files that are older than 90 days

Re: how to purge the files that are older than 90 days

From: HansF <Fuzzy.Greybeard_at_gmail.com>
Date: Thu, 07 Sep 2006 18:41:23 GMT
Message-Id: <pan.2006.09.07.18.41.23.559666@gmail.com>


On Thu, 07 Sep 2006 09:18:05 -0700, muddu wrote:

> Hi All ORA DBA's,
>
> I am in need of a unix shell script that will purge(clean up) all the
> files from history that are older than 90 days.

It's not a shell script. That's a single command.

    man find

to get the details - start with the following pattern:

  find /dir -mtime 90 -a -type f -exec rm {} \;

and test, test, test.

-- 
Hans Forbrich   (mailto: Fuzzy.GreyBeard_at_gmail.com)   
*** Feel free to correct me when I'm wrong!
*** Top posting [replies] guarantees I won't respond.
Received on Thu Sep 07 2006 - 13:41:23 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US