🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #2912

Re: Unix & options (was: RogueStart)

#2912
From: Lynn D. Newton
Date: Tue, 23 Jan 1990 12:02
27 lines
1326 bytes
> To give a well-known solution to a common problem:
> 
> >> Under most UNIX commands, this is impossible even if you quote it.
> >> For example, try removing a file named "-rf" from your home directory
> >> under UNIX.
> 
> rm ~/-rf
> rm ./-rf
> rm -i *			# maybe - depends on what else is in the directory

Here's the UNIX solution I use for that problem:

$ ls -CabF
-rf		./             ../            master.wires
$ find . -name "\-??" -exec rm -i {} \;
or else
$ find . -name "\-??" -ok rm {} \;

Works great!

--
=================================================================
Lynn D. Newton            | System Test
Motorola MCD, Tempe, AZ   | (Department of Heuristic Neology)
(602) 437-3739            | "The bug stops here!"
lynn@jazz.phx.mcd.mot.com |
Technical Details
Message-ID: <LYNN.90Jan23070207@jazz.phx.mcd.mot.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!asuvax!mcdphx!jazz!lynn
References: <921@trlluna.trl.oz> <8737@nigel.udel.EDU> <MWM.90Jan22140803@raven.pa.dec.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!asuvax!mcdphx!jazz!lynn
From: lynn@phx.mcd.mot.com (Lynn D. Newton)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Unix & options (was: RogueStart)
Message-ID: <LYNN.90Jan23070207@jazz.phx.mcd.mot.com>
Date: 23 Jan 90 12:02:07 GMT
References: <921@trlluna.trl.oz> <8737@nigel.udel.EDU> <MWM.90Jan22140803@raven.pa.dec.com>
Sender: news@mcdphx.phx.mcd.mot.com
Organization: Motorola MCD
Lines: 27
In-reply-to: mwm@raven.pa.dec.com's message of 22 Jan 90 22:08:03 GMT