removing a file with hyphens
Richard Foley
Richard.Foley at rfi.net
Thu Jun 7 12:10:59 BST 2007
On Thursday 07 June 2007 12:32, Paul Orrock wrote:
>
> So for reasons I won't go into I ended up with a file like this
>
> -rw-r--r-- 1 paulo paulo 0 2007-05-21 14:23 -----Original
>
> which I didn't want
>
Using the 'rm' manual page (man rm) gives:
To remove a file whose name starts with a `-', for example `-foo', use one of
these commands:
rm -- -foo
rm ./-foo
--
Richard Foley
Ciao - shorter than aufwiedersehen
http://www.rfi.net/
More information about the london.pm
mailing list