corrupt filenames

Keith Gabryelski ag at cbmvax.UUCP
Fri Nov 10 03:25:21 AEST 1989


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 at smoke.BRL.MIL> gwyn at brl.arpa (Doug Gwyn) writes:
>In article <101 at mcdd1.UUCP> guest at 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 at cbmvax.commodore.com     Keith M. Gabryelski      ...!uunet!cbmvax!ag



More information about the Comp.unix.questions mailing list