* SUMMARY: How to remove file "-D"
@ 2000-02-10 8:43 Werner Rost
0 siblings, 0 replies; only message in thread
From: Werner Rost @ 2000-02-10 8:43 UTC (permalink / raw)
To: tru64-unix-managers
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
------------------------------------------------------
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2000-02-10 8:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-02-10 8:43 SUMMARY: How to remove file "-D" Werner Rost
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox