Hello all,
thanks for lot of answers, I am not able to list all people who tried to
help me.
First: Our system level is DU 4.0E.
Here are the hints which work:
# rm ./-D
# rm -- -D
[ you can create a file "-D" with touch -- -D ]
If you first find the i-node nummer of the file using the command ls -i, for
example:
$ ls -i
29672 -D 29319 sendmail-8.9.3
29446 ftp_reg.doc 16138 setiathome
29448 ftp_reg.txt 29317 socket_c
Then you can remove it by first changing directory to where the file -D is,
and then using the command (based on the above example):
find . -inum 29672 -exec rm {} \;
You might like to reassure yourself, that you are after the correct file, by
issuing the find command without the -exec portion first.
Another hint: try ls | od -a
to get an ascii dump of your directory and make sure the filename is
just the two characters "-D" and does not contain any non-printable
characters
Some hints that does not work:
# rm -i *D
rm: illegal option -- D
usage: rm [-efirR] file ...
# rm -i ?D
rm: illegal option -- D
usage: rm [-efirR] file ...
#
thanks and regards
Werner Rost
------------------------------------------------------
Werner Rost, Mannesmann-Boge GmbH
Abt: KIR
Tel: 0228/3825-420
Fax: 0228/3825-398
Email: werner.rost_at_boge.mannesmann.de
Friesdorfer Str. 175, 53175 Bonn - Bad Godesberg
------------------------------------------------------
Received on Thu Feb 10 2000 - 08:45:08 NZDT