tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Werner Rost <werner.rost () boge ! mannesmann ! de>
To: tru64-unix-managers
Subject: SUMMARY: How to remove file "-D"
Date: Thu, 10 Feb 2000 08:43:42 +0000	[thread overview]
Message-ID: <96079336919314.tru64-unix-managers.marc@archive.invalid> (raw)

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
------------------------------------------------------

                 reply	other threads:[~2000-02-10  8:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox