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 > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to delete files with certain ext? tonyvirk UNIX for Dummies Questions & Answers 4 12-09-2007 03:57 PM
Delete files with 0kb mephisto UNIX for Dummies Questions & Answers 3 10-23-2006 11:45 AM
how to delete log files castlerock Shell Programming and Scripting 2 03-29-2006 04:42 PM
when I try to run rm on multiple files I have problem to delete files with space umen UNIX for Dummies Questions & Answers 1 09-20-2005 04:20 AM
I can't delete some files DISTURBED UNIX for Dummies Questions & Answers 4 08-01-2002 12:15 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-29-2007
preethgideon preethgideon is offline
Registered User
  
 

Join Date: Jun 2006
Posts: 71
How to delete files ??

Hi,
I have files which were created while I was split a huge file.They all are created as -l20000xa,-l20000xb...etc.

How do I delete them .Have tried a lot of ways but to no avail.

Please help .

Thanks and Regrds,
Gideon.
  #2 (permalink)  
Old 10-29-2007
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
  
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 2,953
give the complete path name of the file

Code:
rm /home/user/-a
  #3 (permalink)  
Old 10-29-2007
preethgideon preethgideon is offline
Registered User
  
 

Join Date: Jun 2006
Posts: 71
Is it like rm /home/user/-l20000xa ??

Please clarify.
  #4 (permalink)  
Old 10-29-2007
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
  
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 2,953
exactly,

or you could try something like

Code:
rm ./-a
Code:
rm -- -a
  #5 (permalink)  
Old 10-29-2007
preethgideon preethgideon is offline
Registered User
  
 

Join Date: Jun 2006
Posts: 71
Thanks you The first solution worked.
  #6 (permalink)  
Old 10-29-2007
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
  
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 2,953
Quote:
The first solution worked.
Other two solutions also would work
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 07:29 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