LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-14-2004, 08:58 AM   #1
Santinelli
LQ Newbie
 
Registered: May 2003
Location: Amherst, NH
Posts: 7

Rep: Reputation: 0
removing a file (--exclude is the name of the file)


Hey folks -

Apparently while writing a backup script, I have accidently created this file, called --exclude

Now, when I try to remove this file using rm I get an unrecognized option '--exclude' because RM thinks I'm trying to state an option.

I tried rm --exclude to delete and that didn't work.
I tried rm *exclude to delete and that didn't work.
I tried rm "--exclude" and that didn't work.
I tried rm -i * and that didn't work
I tried mv --exclude new and that didn't work.

Anyone have any ideas?

Thanks,

Steve
 
Old 01-14-2004, 09:01 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
This should work:
rm ../--exclude
rm \-\-exclude


Did not check the last one, but it should work.
 
Old 01-14-2004, 09:03 AM   #3
Santinelli
LQ Newbie
 
Registered: May 2003
Location: Amherst, NH
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by druuna
This should work:
rm ../--exclude
rm \-\-exclude


Did not check the last one, but it should work.
Hooray! Thank you so much!!! That blocked the --exclude!

Actually, what I had to do was rm ./--exclude and it worked like a charm!


Thank you again!!! The file was huge!


Steve
 
  


Reply


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem removing file easykillsoft Linux - General 1 11-19-2005 07:52 PM
tar --exclude-from=FILE GATTACA Programming 1 07-29-2005 12:25 PM
removing the file junaid18183 Linux - Newbie 2 04-05-2005 09:55 PM
how to exclude DST=255.X.X.X from iptables log file johnnydangerous Fedora 2 04-01-2005 12:19 AM
Removing lines from file Aylar Programming 2 04-22-2004 06:34 AM


All times are GMT -5. The time now is 01:53 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