Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!usc!rutgers!cbmvax!ag From: ag@cbmvax.UUCP (Keith Gabryelski) Newsgroups: comp.unix.questions Subject: Re: corrupt filenames Message-ID: <8493@cbmvax.UUCP> Date: 9 Nov 89 16:25:21 GMT References: <101@mcdd1.UUCP> <11574@smoke.BRL.MIL> Reply-To: ag@cbmvax.UUCP (Keith Gabryelski) Organization: Commodore Technology, West Chester, PA Lines: 26 I try to resist these temptations to post messages on how to do things in just a different way, but I feel Doug's example leaved a little to be desired. In article <11574@smoke.BRL.MIL> gwyn@brl.arpa (Doug Gwyn) writes: >In article <101@mcdd1.UUCP> guest@mcdd1.UUCP (guest) writes: >>[How do I remove the file '- 1'] > >$ >foo >$ rm foo '- 1' > >The general-purpose trick >$ rm -ri . >also works, but is more trouble since you have to answer the prompts. The general trick is really: $ rm './FILENAME' (quote the filename and preceed it with './'), so $ rm ./'- 1' Pax, Keith -- ag@cbmvax.commodore.com Keith M. Gabryelski ...!uunet!cbmvax!ag