From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079336919314.tru64-unix-managers.marc@archive.invalid> From: Werner Rost Date: Thu, 10 Feb 2000 08:43:42 +0000 To: tru64-unix-managers Subject: SUMMARY: How to remove file "-D" X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079336919314 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@boge.mannesmann.de Friesdorfer Str. 175, 53175 Bonn - Bad Godesberg ------------------------------------------------------