Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: how to purge the files that are older than 90 days
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
![]() |
![]() |