Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Jul 2018 14:07:36 -0600
From:      "@lbutlr" <kremels@kreme.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Problem deleting files
Message-ID:  <049611ED-A8CE-41CD-944A-6BEB9916A84E@kreme.com>
In-Reply-To: <85B4CFC22AC0CA70B917D42D@Pauls-MacBook-Pro.local>
References:  <85B4CFC22AC0CA70B917D42D@Pauls-MacBook-Pro.local>

next in thread | previous in thread | raw e-mail | index | archive | help
On 01 Jul 2018, at 13:13, Paul Schmehl <paul.schmehl@gmail.com> wrote:
> find . -type f -exec rm [] \; returns rm: []: No such file or =
directory over and over again.

Should be {} and not []

But for non-ancient versions of find, this will work

find . -type f -delete

(I find it much easier to remember and certainly easier to type)


--=20
I AM NOT A 32 YEAR OLD WOMAN Bart chalkboard Ep. 7F08




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?049611ED-A8CE-41CD-944A-6BEB9916A84E>