The UNIX and Linux Forums  


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
removing directory in an input file chrysSty UNIX for Dummies Questions & Answers 2 06-05-2008 12:12 AM
Removing a file from a directory npatel Filesystems, Disks and Memory 5 05-22-2008 11:47 AM
Problem Removing a Directory !!! gauravsachan UNIX Desktop for Dummies Questions & Answers 1 03-15-2007 01:53 AM
Removing the oldest file in a directory pavan_movva Shell Programming and Scripting 2 10-10-2006 12:38 PM
Removing files automatically from a directory after 30 days. justinb_155 Shell Programming and Scripting 7 06-24-2005 03:07 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 12-23-2003
da_curtain da_curtain is offline
Registered User
  
 

Join Date: Dec 2003
Location: Reno, Nevada
Posts: 4
Angry removing a directory

all - I'm trying to delete this directory with no success. This was placed in my folder by a test script I wrote for beginners...

drwxr-xr-x 2 myaddress ssusr 512 Dec 22 16:10 $x+1

Here is the message I receive - I've tried every command possible to remove it:

rmdir: 0653-609 Cannot remove +1.

thanks
  #2 (permalink)  
Old 12-23-2003
jsilva's Avatar
jsilva jsilva is offline
Registered User
  
 

Join Date: Apr 2003
Posts: 169
Hi,

Do rmdir ./$x+1
  #3 (permalink)  
Old 12-23-2003
Optimus_P Optimus_P is offline Forum Advisor  
flim flam flamma jamma
  
 

Join Date: May 2001
Location: Chicago IL, USA
Posts: 1,006
have you tried?

rm '$x+1'
rm \$x\+1
rm `ls`
  #4 (permalink)  
Old 12-23-2003
da_curtain da_curtain is offline
Registered User
  
 

Join Date: Dec 2003
Location: Reno, Nevada
Posts: 4
removing a directory

this is the response i received..

rmdir: 0653-609 Cannot remove ./+1.
A file or directory in the path name does not exist.
  #5 (permalink)  
Old 12-23-2003
da_curtain da_curtain is offline
Registered User
  
 

Join Date: Dec 2003
Location: Reno, Nevada
Posts: 4
Optimus - i got this message back as well:

rm: 0653-603 Cannot remove directory $x+1.
  #6 (permalink)  
Old 12-23-2003
jsilva's Avatar
jsilva jsilva is offline
Registered User
  
 

Join Date: Apr 2003
Posts: 169
Re: removing a directory

Quote:
Originally posted by da_curtain
rmdir: 0653-609 Cannot remove ./+1.
A file or directory in the path name does not exist.
rmdir ./"+1", then...
  #7 (permalink)  
Old 12-23-2003
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,131
What system are you using? What shell?

Also try:

rm -fr '$x+1'
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 01:17 PM.


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