removing a file with hyphens

Roger Burton West roger at
Thu Jun 7 11:43:09 BST 2007

On Thu, Jun 07, 2007 at 11:32:28AM +0100, Paul Orrock wrote:

>My second question is how do non perl people do it ?

man rm

       To remove a file whose name starts with a `-', for example `-foo',  use
       one of these commands:

              rm -- -foo

              rm ./-foo

More information about the mailing list