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

  1. Path: sparky!uunet!olivea!mintaka.lcs.mit.edu!ai-lab!life.ai.mit.edu!friedman
  2. From: friedman@gnu.ai.mit.edu (Noah Friedman)
  3. Newsgroups: comp.unix.shell
  4. Subject: Re: cant delete file!
  5. Message-ID: <FRIEDMAN.92Aug29011713@nutrimat.gnu.ai.mit.edu>
  6. Date: 29 Aug 92 05:17:13 GMT
  7. References: <BtLrxr.77G@acsu.buffalo.edu>
  8. Sender: news@ai.mit.edu
  9. Organization: Free Software Foundation, 675 Mass Ave. Cambridge, MA 02139
  10. Lines: 24
  11. In-reply-to: vidya-v@acsu.buffalo.edu's message of 26 Aug 92 18:13:02 GMT
  12.  
  13. In article <BtLrxr.77G@acsu.buffalo.edu> vidya-v@acsu.buffalo.edu (vidyaranya) writes:
  14. >A file has been created in my directory accidentally, possibly while
  15. >reading disk on a SparcStation IPC. I am unable to remove it. The file
  16. >name appears as:
  17. >
  18. >-rw-r--r--  1 vidya-v         0 Aug 24 12:02 A??LN???N???-@??-
  19. >
  20. >How do I delet it? I tried escaping the '?' and '@' as follows:
  21.  
  22.    That's not going to work, because "?" is not the character that's really
  23. appearing in the filename.  Mostly likely, your `ls' is converting
  24. "unprintable" 8-bit characters into question marks on output to avoid
  25. causing possible insanity with your terminal.
  26.  
  27.    One way to find out exactly what the characters are in the file name is
  28. to use the `-b' option with ls; that's assuming your ls has such an option.
  29. You then have a variety of choices (using your shell) to construct the
  30. filename.  You might be able to quote something using echo and octal
  31. characters, or use C-v (ctrl-v) prefixes to insert literal control
  32. characters in your input.
  33.  
  34.    You can also try "rm -i ./A*" in the directory where the file appears,
  35. but this has a few inherit dangers, like accidentally responding "y" to
  36. files you didn't actually mean to delete. 
  37.