Return to BSD News archive
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.uwa.edu.au!nodecg.ncc.telecomwa.oz.au!not-for-mail
From: tdwyer@netbsd08.dn.itg.telecom.com.au (Terry Dwyer)
Newsgroups: comp.os.386bsd.questions
Subject: Re: Help! How to remove file with "-"
Date: 15 Aug 1994 12:38:26 +0800
Organization: Telecom Australia
Lines: 20
Message-ID: <32mrgg$le2@netbsd08.dn.itg.telecom.com.au>
References: <32iviu$4ug@blkbox.blkbox.COM>
NNTP-Posting-Host: 144.139.63.32
X-Newsreader: TIN [version 1.2 PL2]
Cameron Bevis (cbevis@blkbox.com) wrote:
: Hello all. While doing a recent tar, I place the --exclude parm in the
: wrong place and created a huge file in my root dir called "--exclude".
: (Stupid, I know...) I have tried the -i switch for rm (it won't prompt for
: THAT file), quoting the file name, just "mv'ing" it for the time being, and
: a variety of other things. Nothing seems to work. Now my root filesystem
: is 100% full, and I am in a pickle. Any help would be appreciated
: Cam Bevis
try: rm - "-restoffilename"
you can include spaces in the filename.
Terry.
--
_-_|\ Terry Dwyer E-Mail: tdwyer@netbsd08.dn.itg.telecom.com.au
/ \ System Administrator Phone: +61 9 491 5161 Fax: +61 9 221 2631
*_.^\_/ Telecom Australia Telstra Corporation MIME capable mailer
v Perth WA ( I do not speak for Telstra or Telecom )