bug-coreutils
[Top][All Lists]
Advanced

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

bug#21051: direct/file deletion


From: Bernhard Voelker
Subject: bug#21051: direct/file deletion
Date: Thu, 16 Jul 2015 17:06:32 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

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





reply via email to

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