How to delete files starting with "-"?

Joerg Sonnenberger joerg at britannica.bec.de
Wed Sep 6 07:34:12 PDT 2006


On Thu, Sep 07, 2006 at 12:07:52AM +1000, Petr Janda wrote:
> Is it possible? How? Ive been trying to figure out.

rm -- -foo

Any tool using getopt(3) supports '--' to annotate the end of arguments.

Joerg





More information about the Users mailing list