LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to delete a file named -=tehPARADOX.com-smokey888=-.nfo (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-delete-a-file-named-%3Dtehparadox-com-smokey888%3D-nfo-758237/)

mynameisthomas 09-28-2009 09:45 AM

How to delete a file named -=tehPARADOX.com-smokey888=-.nfo
 
Hi,

I have got a file named -=tehPARADOX.com-smokey888=-.nfo from an archive.

Now I can do nothing with it. No command is working, rm , vim, cat.

Quote:

$ cat -\=tehPARADOX.com-smokey888\=-.nfo
cat: invalid option -- '='
Try `cat --help' for more information.
$ vim -\=tehPARADOX.com-smokey888\=-.nfo
VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Mar 27 2009 08:42:32)
Unknown option argument: "-=tehPARADOX.com-smokey888=-.nfo"
More info with: "vim -h"
$ rm -\=tehPARADOX.com-smokey888\=-.nfo
rm: invalid option -- '='
Try `rm ./'-=tehPARADOX.com-smokey888=-.nfo'' to remove the file `-=tehPARADOX.com-smokey888=-.nfo'.
Try `rm --help' for more information.
I also tried with \ before hyphens but they too didn't work.

Quote:

$ cat \-\=tehPARADOX.com\-smokey888\=\-.nfo
cat: invalid option -- '='
Try `cat --help' for more information.
How can I open, delete or do any other thing with such file?
Any ideas?

bhaslinux 09-28-2009 09:49 AM

using -- at the end of the arguement list will force the utilities to assume the subsequent ones are not command line arguement
so
cat -- \-\=tehPARADOX.com\-smokey888\=\-.nfo
will do the trick.

mynameisthomas 09-28-2009 09:59 AM

Quote:

Originally Posted by bhaslinux (Post 3699451)
using -- at the end of the arguement list will force the utilities to assume the subsequent ones are not command line arguement
so
cat -- \-\=tehPARADOX.com\-smokey888\=\-.nfo
will do the trick.

Thanks bhaslinux for prompt reply. I really appreciate it.


All times are GMT -5. The time now is 03:26 AM.