Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: How keep only one copy .dmp?
On 7/17/07, GovindanK <gkatteri_at_gmail.com> wrote:
>
> I have seen this type of problem with unix. You will observe that
> running find $DMPDIR -name "*" -mtime 0 -exec rm {} \; (without the +)
> will give different results and is what you actually want ; In my env,
> i have put both;
>
>
I haven't got to say this lately, so here goes:
Don't used -exec, use instead xargs
eg. find . -name "*.log" -mtime -30 | xargs rm
Several orders of magnitude faster than -exec.
-exec forks a shell for every line output from find.
-- Jared Still Certifiable Oracle DBA and Part Time Perl Evangelist -- http://www.freelists.org/webpage/oracle-lReceived on Tue Jul 17 2007 - 13:40:51 CDT
![]() |
![]() |