home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!warwick!coventry!ccx062
- From: ccx062@cch.coventry.ac.uk (Chris Taylor)
- Newsgroups: comp.unix.shell
- Subject: Re: cant delete file!
- Keywords: funny filenames!
- Message-ID: <BtoqI8.J9p@cck.coventry.ac.uk>
- Date: 28 Aug 92 08:34:56 GMT
- References: <BtLrxr.77G@acsu.buffalo.edu> <1992Aug27.132017.3956@awdprime.austin.ibm.com>
- Sender: news@cck.coventry.ac.uk (news user)
- Organization: Coventry University
- Lines: 41
- Nntp-Posting-Host: cc_sysh
-
- In article <1992Aug27.132017.3956@awdprime.austin.ibm.com> stuart@piobe.austin.ibm.com writes:
- >
- >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:
- >>
- >> daisy [~] 43: rm A\?\?LN\?\?\?N\?\?\?-\@\?\?-
- >> rm: A??LN???N???-@??-: No such file or directory
- >> daisy [~] 44:
- >>
- >> The file name is being correctly taken by the shell, but it cannot
- >> find it!
- >> Even unlink has no effect.
- >>
- >> Any suggestions would be appreciated.
- >>
- >
- >How about using 'rm -i *'. It will ask whether to delete each
- >file-- when you get to the one you want say 'yes'.
-
- Although this will work for the majority of files, some files, for instance
- with a '-' at the beginning cannot be removed like that....
-
- For those try 'rm -i ./*'
- This should work in all cases (I hope :) )
-
- -Chris
-
-
-
- --
- ------------------------------------------------------------------------------
- Chris Taylor: ChrisT@cck.cov.ac.uk
- Coventry University, Computing Services. Tel: (0203) 838644
- ------------------------------------------------------------------------------
-