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

Re: scripting question

----- Original Message -----
From: "Scott Henson" <debian-list@silvercoin.dyndns.org>
To: <debian-user@lists.debian.org>
Sent: Wednesday, April 16, 2003 2:13 AM
Subject: Re: scripting question

> On Tue, 2003-04-15 at 20:40, nate wrote:
> > rm -rf *
> Do me a favor.  Try this on your system as root.  Then walk a way and
> come back an hour later.  Youll need another system to tell us what
> happened cause yours will be hosed.  This command will generally delete
> your entire file system.

Well generally it depends what directory you execute it from.  But I agree
that it is a risky policy.

FWIW, I thought of rm -rf `ls |grep -v ?B?` but didn't know the regexp for
start and end of word (the ?'s)...


Reply to: