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

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 12-23-2003
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
Forum Sponsor
  #2  
Old 12-23-2003
jsilva's Avatar
Registered User
 

Join Date: Apr 2003
Posts: 169
Hi,

Do rmdir ./$x+1
  #3  
Old 12-23-2003
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  
Old 12-23-2003
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  
Old 12-23-2003
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  
Old 12-23-2003
jsilva's Avatar
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  
Old 12-23-2003
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,667
What system are you using? What shell?

Also try:

rm -fr '$x+1'
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 08:49 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0