Re: Unable to del an OS file with special char - need ideas

From: Jared Still <jkstill_at_gmail.com>
Date: Wed, 9 Jul 2008 11:59:58 -0700
Message-ID: <bf46380807091159n2d2e73s244ba3c73c0b6c16@mail.gmail.com>


On Wed, Jul 9, 2008 at 11:44 AM, Bobak, Mark <Mark.Bobak_at_proquest.com> wrote:

> Another option:
>
>
>
> rm -- -C
>
>

Ah, one of the rare folks that knows about '--'.

FYI for those new to it, '--' works for many linux/unix commands

Most std *nix commands accept the argument -- as meaning 'this is the end of command line options,
everything past here is literal'

This is part of the getopt function in the stdlib.

-- 
Jared Still
Certifiable Oracle DBA and Part Time Perl Evangelist

--
http://www.freelists.org/webpage/oracle-l
Received on Wed Jul 09 2008 - 13:59:58 CDT

Original text of this message