home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / shell / 3676 < prev    next >
Encoding:
Internet Message Format  |  1992-08-29  |  1.8 KB

  1. Path: sparky!uunet!mcsun!uknet!warwick!coventry!ccx062
  2. From: ccx062@cch.coventry.ac.uk (Chris Taylor)
  3. Newsgroups: comp.unix.shell
  4. Subject: Re: cant delete file!
  5. Keywords: funny filenames!
  6. Message-ID: <BtoqI8.J9p@cck.coventry.ac.uk>
  7. Date: 28 Aug 92 08:34:56 GMT
  8. References: <BtLrxr.77G@acsu.buffalo.edu> <1992Aug27.132017.3956@awdprime.austin.ibm.com>
  9. Sender: news@cck.coventry.ac.uk (news user)
  10. Organization: Coventry University
  11. Lines: 41
  12. Nntp-Posting-Host: cc_sysh
  13.  
  14. In article <1992Aug27.132017.3956@awdprime.austin.ibm.com> stuart@piobe.austin.ibm.com writes:
  15. >
  16. >In article <BtLrxr.77G@acsu.buffalo.edu>, vidya-v@acsu.buffalo.edu (vidyaranya) writes:
  17. >> 
  18. >> A file has been created in my directory accidentally,
  19. >> possibly while reading disk on a SparcStation IPC. I am unable
  20. >> to remove it. The file name appears as:
  21. >> 
  22. >> -rw-r--r--  1 vidya-v         0 Aug 24 12:02 A??LN???N???-@??-
  23. >> 
  24. >> How do I delet it? I tried escaping the '?' and '@' as follows:
  25. >> 
  26. >> daisy [~] 43: rm A\?\?LN\?\?\?N\?\?\?-\@\?\?-
  27. >> rm: A??LN???N???-@??-: No such file or directory
  28. >> daisy [~] 44: 
  29. >> 
  30. >> The file name is being correctly taken by the shell, but it cannot
  31. >> find it!
  32. >> Even unlink has no effect.
  33. >> 
  34. >> Any suggestions would be appreciated.
  35. >> 
  36. >
  37. >How about using 'rm -i *'.  It will ask whether to delete each
  38. >file-- when you get to the one you want say 'yes'.
  39.  
  40. Although this will work for the majority of files, some files, for instance
  41. with a '-' at the beginning cannot be removed like that....
  42.  
  43. For those try 'rm -i ./*'
  44. This should work in all cases (I hope :)  )
  45.  
  46.     -Chris
  47.     
  48.  
  49.  
  50. -- 
  51. ------------------------------------------------------------------------------
  52.         Chris Taylor:    ChrisT@cck.cov.ac.uk  
  53.     Coventry University, Computing Services.    Tel: (0203) 838644
  54. ------------------------------------------------------------------------------
  55.