Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 May 2000 21:47:38 +0100
From:      Ben Smithurst <ben@scientia.demon.co.uk>
To:        Darren Wyn Rees <merlin@netlink.co.uk>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: "rm -rf *" - "argument list too long"
Message-ID:  <20000507214738.B79359@strontium.scientia.demon.co.uk>
In-Reply-To: <20000507214635.A79359@strontium.scientia.demon.co.uk>
References:  <20000507201410.M540@netlink.co.uk> <20000507214635.A79359@strontium.scientia.demon.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
Ben Smithurst wrote:

> Darren Wyn Rees wrote:
> 
>> I'm in a directory with a tonne of files I wish to delete.
>> I type "rm -rf *", but it won't work, it gives "/bin/rm: Argument
>> list too long".  So how can I delete these many files ?
> 
> find . -delete

Sorry, I forgot to mention that these aren't quite the same...  My
version will delete files whose names begin with a dot, yours won't as
the glob expansion won't include those files.  Fixing that is left as an
exercise.

-- 
Ben Smithurst / ben@scientia.demon.co.uk / PGP: 0x99392F7D


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000507214738.B79359>