Re: Deleting Files beginning with -
Hi,
* Kay-Michael Voit <debian@voits.net> [030508 17:38]:
> Hi,
> I have a file beginning with "-". If I try to delete ist, rm says
> "invalid option". Same thing when I set " or '. How can I delete it?
There have already suggested
rm -- -thefile
rm "-thefile"
The first works, another is specifying the path, eg:
rm ./-thefile
Cheers,
Nick.
--
Debian testing/unstable
Linux twofish 2.4.20-looxt93c3 #1 Thu May 8 16:34:25 JST 2003
i686 unknown unknown GNU/Linux
Reply to: