*BSD News Article 42281


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!newshost.marcam.com!news.mathworks.com!solaris.cc.vt.edu!vtaix.cc.vt.edu!cs230457
From: cs230457@vtaix.cc.vt.edu (Scott Gasch)
Newsgroups: comp.unix.bsd
Subject: Re: HELP!! how do you delete...
Date: 10 Feb 1995 20:30:52 GMT
Organization: Virginia Tech, Blacksburg, Virginia
Lines: 15
Message-ID: <3hgids$83v@solaris.cc.vt.edu>
References: <3hfagp$fiv@villa.fc.net>
NNTP-Posting-Host: vtaix.cc.vt.edu
NNTP-Posting-User: cs230457
X-Newsreader: TIN [version 1.2 PL0]

Steve Gibson (ares@freeside.fc.net) wrote:
: Help!  I'm a unix novice as will probably become painfully obvious in 
: reading this next question.  How does one delete a file that starts with 
: a "-"?  The 'rm' command won't accept it since it uses the "-" to denote 
: whatever feature you want to turn on...  So, there has to be a way to get 
: rid of these files!  Please help!

Try either:

	rm ./-whatever
or
	rm ?whatever

Scott :)