*BSD News Article 24273


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!howland.reston.ans.net!xlink.net!math.fu-berlin.de!uni-paderborn.de!urmel.informatik.rwth-aachen.de!news.rhrz.uni-bonn.de!saph2.physik.uni-bonn.de!juengst
From: juengst@saph2.physik.uni-bonn.de (Henry G. Juengst)
Newsgroups: comp.os.386bsd.questions
Subject: Re: How do you rm a strange file?
Date: 21 Nov 1993 14:18:22 GMT
Organization: Physikalisches Institut der Universitaet Bonn
Lines: 33
Distribution: world
Message-ID: <2cntbf$f6@news.rhrz.uni-bonn.de>
References: <2ch6t2$ih5@netbsd08.dn.itg.telecom.com.au> <CGrCK8.JBC@mcs.anl.gov> <1993Nov20.195548.20444@newstand.syr.edu>
Reply-To: juengst@saph2.physik.uni-bonn.de
NNTP-Posting-Host: saph1.physik.uni-bonn.de


In article <1993Nov20.195548.20444@newstand.syr.edu>, smcarey@rodan.syr.edu (Shawn M Carey) writes:
>In article <CGrCK8.JBC@mcs.anl.gov> winans@xray.aps.anl.gov (John R. Winans) writes:
>>In article <2ch6t2$ih5@netbsd08.dn.itg.telecom.com.au> tdwyer@netbsd08.dn.itg.telecom.com.au (Terry Dwyer 619 491 5161) writes:
>>>...
>>>Any clues how to rm it?
>>
>>How about "rm -i *"  and say 'n' to everything except the one you want
>>to get rid of?  Either that or use wildcards.   If you are root in a nasty
>>spot, like /etc or /bin, I HIGHLY recommend the use of the -i flag!
>>
>
>	There is a "--" flag that appears to be undocumented in the
                                                ~~~~~~~~~~~~

GREAT !

>man page which tells rm to allow '-' as the first character of a
>filename argument.
>
>% rm -- -lg
>
>	I believe I discovered this option in the man page for sunos 4.1.
>Fortunately we have the functionality if not the documentation.
>
>-Shawn Carey
>
--
juengst@saph2.physik.uni-bonn.de   [131.220.221.12]  (internet)
juengst@boss1.physik.uni-bonn.de   [131.220.221.30]
saph2::juengst                     [13.259]          (decnet)

Any opinions in this mail are my own.