octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cant find mkoctfile.


From: Rik
Subject: Re: cant find mkoctfile.
Date: Tue, 3 Jul 2018 09:32:41 -0700

On 07/03/2018 09:00 AM, address@hidden wrote:
Subject:
Re: cant find mkoctfile.
From:
"Dmitri A. Sergatskov" <address@hidden>
Date:
07/02/2018 09:52 AM
To:
Andreas Weber <address@hidden>
CC:
octave-maintainers <address@hidden>
List-Post:
<mailto:address@hidden>
Precedence:
list
MIME-Version:
1.0
References:
<address@hidden> <address@hidden> <address@hidden> <address@hidden> <address@hidden> <address@hidden> <address@hidden>
In-Reply-To:
<address@hidden>
Message-ID:
<address@hidden>
Content-Type:
multipart/alternative; boundary="00000000000081b4e60570070563"
Message:
1



On Mon, Jul 2, 2018 at 1:38 AM, Andreas Weber <address@hidden> wrote:
Am 01.07.2018 um 23:09 schrieb Dmitri A. Sergatskov:
> I usually do (as root):
> cd /usr/local
> find ./ -name "*oct*" | xargs rm -rf

If you want to do that I would suggest to use
find ./ -name "*oct*" -delete

because it processes directories from depth first (so you don't get
errors if a directory already was deleted)

-- Andy


​It looks to me it is the other way around:


​find ./ -name "*oct*" -delete
find: cannot delete ‘./include/octave-4.4.0+/octave’: Directory not empty
find: cannot delete ‘./include/octave-4.4.0+’: Directory not empty
find: cannot delete ‘./share/octave/4.4.0+/etc/tests/libinterp/octave-value’: Directory not empty
find: cannot delete ‘./share/octave/4.4.0+/etc/tests/liboctave’: Directory not empty
find: cannot delete ‘./share/octave’: Directory not empty
find: cannot delete ‘./libexec/octave’: Directory not empty
find: cannot delete ‘./lib/octave/4.4.0+/oct’: Directory not empty
find: cannot delete ‘./lib/octave/4.4.0+/site/oct’: Directory not empty
find: cannot delete ‘./lib/octave/site/oct’: Directory not empty
find: cannot delete ‘./lib/octave’: Directory not empty

And I have never seen any errors/warnings with

find ./ -name "*oct*" | xargs rm -rf

​Dmitri.

I always use this syntax too.  It's never a problem because with the '-f' option ls doesn't care whether the file exists or not.  From the man page for ls:

       -f, --force
              ignore nonexistent files and arguments, never prompt

--Rik

reply via email to

[Prev in Thread] Current Thread [Next in Thread]