Re: [Hampshire] how do I delete a file named -n

Top Page

Reply to this message
Author: Alex
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] how do I delete a file named -n
> Have you tried:
> rm ./-n
>
> that should work, I hope
>
> Andy
>


Thank you! I did a `touch \-` here and ended up not being able to remove it
(ls ? lists '-' but you can't delete it with rm ?). Using 'rm ./\- worked
for me. Got a bit scared there...

Cheers,

--
Alex Collins