[CentOS] Re: How to delete files with specical characters in the name?

Tue Jan 22 18:56:55 UTC 2008
Eric B. <ebenze at hotmail.com>

>> My problem is that I am trying to delete them, but can't figure out how 
>> to
>> delete these files.  Everything I try, I get the same msg:
>> [eric at apollo mysql]$ rm '-N=2007-11-08'
>> rm: invalid option -- N
>> Try `rm --help' for more information.
>>
>>
>> I have tried single quotes, double quotes, escaping it with a \ and still
>> get the same error.
>>
>> Any ideas / suggestions?
>>
>
> rm -- -N=2007-11-08
>
> The -- tells (most?) programs to stop processing options. This is listed 
> as
> an example in the rm man page, so you should know that, right? I mean, you
> *did* read the man page....


Actually, yes - I have read the man page for rm many times before, but I 
guess I just missed / forgot that section.  To be honest, I had no idea 
that -- will tell most programs to stop processing options.

Of course, now that everyone has spelled it out for me, I went back to the 
man page and it was plainly obvious.

Thanks again!

Eric