gwyn@smoke.BRL.MIL (Doug Gwyn) (11/09/89)
In article <101@mcdd1.UUCP> guest@mcdd1.UUCP (guest) writes: >On a BSD system how can I remove a file that has a corrupt filename >such as '- 1' ? $ >foo $ rm foo '- 1' The general-purpose trick $ rm -ri . also works, but is more trouble since you have to answer the prompts.
ag@cbmvax.UUCP (Keith Gabryelski) (11/10/89)
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