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