[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: remove file with special name



>By incident I created a file with the name  -name, how can I remove this
>file? I tried with rm \-name however this doesn't work.
>Any suggestion?

rm -- -name

The '--' option tells rm that all following arguments are non-options.

Regards

Philipp
-------------------------------------
<philipp trautmann munich netsurf de>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]