LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 09-28-2009, 09:45 AM   #1
mynameisthomas
LQ Newbie
 
Registered: Feb 2008
Distribution: Fedroa 10
Posts: 19

Rep: Reputation: 0
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?
 
Old 09-28-2009, 09:49 AM   #2
bhaslinux
Member
 
Registered: Oct 2003
Location: UnitedKingdom
Distribution: Debian Lenny
Posts: 351

Rep: Reputation: 47
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.
 
Old 09-28-2009, 09:59 AM   #3
mynameisthomas
LQ Newbie
 
Registered: Feb 2008
Distribution: Fedroa 10
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bhaslinux View Post
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.
 
  


Reply

Tags
file


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
(bind) named: couldn't open pid file '/var/run/named/named.pid' - any help? samengr Linux - Server 6 04-01-2009 06:22 AM
file /var/lib/named/var/named/reverse/named.zero failed: file not found Toadman Linux - Software 15 03-18-2009 07:01 PM
service named cant start error in named.conf file gayanasa Linux - Server 2 07-02-2008 09:58 AM
MySQL: Trying to Drop Columns Named update and delete weibullguy Programming 4 06-13-2008 12:54 PM
how to create divx info (.nfo) file Kropotkin Linux - Desktop 2 10-02-2006 08:00 AM


All times are GMT -5. The time now is 04:55 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration