Ugly File Name (Correction)
John Stafford
jws at hpcljws.HP.COM
Thu May 18 08:16:06 AEST 1989
Another vote for an "often asked questions" document...
To remove a file that begins with - in the current directory (say
-whatever for example)
rm ./-whatever
should always be good, for that matter you could get verbose and say
from anywhere (as appropriate)
rm /place/otherplace/somewhere/here/-whatever
in many places
rm -- -whatever
works and
rm - -whatever
is rumored to work some places, but I've never used a system where it
did (or at least was documented to).
More information about the Comp.unix.questions
mailing list