LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Tags used in this thread
Popular LQ Tags , ,

Reply
 
Thread Tools
Old 09-28-2009, 10:45 AM   #1
mynameisthomas
LQ Newbie
 
Registered: Feb 2008
Distribution: Fedroa 10
Posts: 19
Thanked: 0
How to delete a file named -=tehPARADOX.com-smokey888=-.nfo


[Log in to get rid of this advertisement]
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?
linuxfedora mynameisthomas is offline  
Tag This Post , ,
Reply With Quote
Old 09-28-2009, 10:49 AM   #2
bhaslinux
Member
 
Registered: Oct 2003
Location: UnitedKingdom
Distribution: Debian Lenny
Posts: 317
Thanked: 20
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.
linux bhaslinux is offline     Reply With Quote
Thanked by:
Old 09-28-2009, 10:59 AM   #3
mynameisthomas
LQ Newbie
 
Registered: Feb 2008
Distribution: Fedroa 10
Posts: 19
Thanked: 0

Original Poster
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.
linuxfedora mynameisthomas is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 07:22 AM
file /var/lib/named/var/named/reverse/named.zero failed: file not found Toadman Linux - Software 15 03-18-2009 08:01 PM
service named cant start error in named.conf file gayanasa Linux - Server 2 07-02-2008 10:58 AM
MySQL: Trying to Drop Columns Named update and delete weibullguy Programming 4 06-13-2008 01:54 PM
how to create divx info (.nfo) file Kropotkin Linux - Desktop 2 10-02-2006 09:00 AM


All times are GMT -5. The time now is 08:52 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration