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

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



>> 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@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



_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux