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

Re: rm -rf .* alternatives



Jason Lunz wrote:
kmself@ix.netcom.com said:

Other tips?


use zsh:

	[orr](0) % zsh
	[orr](0) % touch .foo
	[orr](0) % echo .*
	.foo
	[orr](0) % bash
	bash-2.05b$ echo .*
	. .. .foo

Jason



or just use a recent version of coreutils[>5.0-5 tested]

$rm -rf .*
rm: cannot remove '.' or '..'
rm: cannot remove '.' or '..'
$

:)[Though this doesn't stop it from being very dangerous if you sit down at a random computer]

Attachment: pgpWs4QP_RLqB.pgp
Description: PGP signature


Reply to: