Re: Can't delete a file
On Aug 11, Mike Miller wrote
> I have a file on my machine that I created that begins with a hyphen. How
> can I delete it. rm -test says can't delete est using option -t (or
> whatever). How do I tell it not to use the hyphen as a switch?
With most GNU tools, '--' means "end option processing here".
So "rm -- -test" will do what you want.
HTH,
Ray
--
Cyberspace, a final frontier. These are the voyages of my messages,
on a lightspeed mission to explore strange new systems and to boldly go
where no data has gone before.
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . Trouble?
e-mail to templin@bucknell.edu .
Reply to: