Path: 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: Date: 23 Jan 90 12:02:07 GMT References: <921@trlluna.trl.oz> <8737@nigel.udel.EDU> 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 > 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 |