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

  • From: "Jared Still" <jkstill@xxxxxxxxx>
  • To: Mark.Bobak@xxxxxxxxxxxx
  • Date: Wed, 9 Jul 2008 11:59:58 -0700

On Wed, Jul 9, 2008 at 11:44 AM, Bobak, Mark <Mark.Bobak@xxxxxxxxxxxx>

>  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

Other related posts: