The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Deleting lines inside a file without opening the file toms Shell Programming and Scripting 3 09-24-2007 07:58 AM
C Calender Help - Unusual error Octal High Level Programming 3 03-26-2007 03:08 PM
very unusual question about while Terrible Shell Programming and Scripting 3 08-16-2006 02:21 AM
unusual function refrences xbjxbj High Level Programming 11 02-22-2005 02:52 AM
unusual function refrences xbjxbj UNIX for Advanced & Expert Users 1 02-10-2005 12:27 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-09-2004
scmay scmay is offline
Registered User
  
 

Join Date: Apr 2004
Location: Melbourne
Posts: 15
Deleting an unusual file

Hi everyone,

I was doing some practising with Unix and accidentally created a file with the name --------------------

Yeah, it was UNINTENTIONALLY. I tried removing it various ways like
rm '--------------'
rm '-.*'
and all other sorts, but Unix keeps detecting that as an option stuff...

Anyone any idea how to remove this file? Thx
  #2 (permalink)  
Old 06-09-2004
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
Registered Geek
  
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
Code:
rm -- ----*
The initial "--" tells rm to stop treating the arguments as options, and treat them as filenames.

Cheers
ZB
  #3 (permalink)  
Old 06-09-2004
scmay scmay is offline
Registered User
  
 

Join Date: Apr 2004
Location: Melbourne
Posts: 15
cool. thx
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:15 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0