Subject: Re: bug#21051: direct/file deletion

From: Bernhard Voelker <[email-masked]>
Date: Thu, 16 Jul 2015 17:06:32 +0200

On 07/16/2015 04:49 PM, Eric Blake wrote:
> On 07/16/2015 07:20 AM, Ruediger Meier wrote:
>> IMO all workarounds to cleanup "." (inclusive dot-files) are just
>> annoying.
>
> These work (but I agree that they are much longer to type)
>
> rm -rf -- * .??* .[!.]
> (except that has problems with command line length)
>
> find . \! -name . | xargs rm -rf

GNU find does it, too:

   $ find . -mindepth 1 -delete

Have a nice day,
Berny