From: Chris Watts (cj_watts@csd.brispoly.ac.uk)
Date: 06/15/92


From: cj_watts@csd.brispoly.ac.uk (Chris Watts)
Subject: Re: How do I delete file named "-I" ?
Date: 15 Jun 1992 09:36:20 GMT

In article <1992Jun15.060243.23706@unislc.uucp> erc@unislc.uucp (Ed Carp) writes:
>thoth@uiuc.edu (Ben Cox) writes:
>
>>jason@intrepid.ucr.edu (Jason Bishop) writes:
>
>>> Try rm - -I Leading - tells rm that there are no arguments, all following
>>> text are files to delete. Also works with cp, mv, etc...
>
>>Unfortunately, that doesn't work. "rm - -I" gives "rm: -: No such
>>file or directory". This is the standard answer to this question,
>>though, and I have never gotten it to work on any unix system. The
>>BSD manpage even says that this is the answer. It is not.
>
>>Yesterday, I thought I knew the answer to this question. Now I am
>>certain that I don't. :-( (Not even dired -- emacs doesn't even
>>notice the file is there; same with "rm ?I".)
>
>Try "rm -i *". If that doesn't work, I could post a short program
>I wrote once to delete unprintable files (ones that rm would barf on).
>Essentially, it would try to delete anything that came in on stdin. I
>would do a "ls -1 > xxx", edit xxx, then do a "rmstdin < xxx".

I had this same problem on my account on my polytechnics systems unix, try
using emacs in dired mode if you have emacs and delete the files that way.

===============================================================================
Chris watts
Email: Internet cj_watts@csd.brispoly.ac.uk
       Janet cj_watts@uk.ac.brispoly.csd
===============================================================================