[comp.unix.questions] file removal question

dblack@pilot.njin.net (David Alan Black) (02/23/91)

Here's a little brain-teaser:

I've managed, though faulty sed syntax, to end up with a 0-byte file
called "-e".

The question is: how do I delete it????

I've tried:

rm -e
rm ?e
rm -?
rm \-e

but rm isn't having any of it.

What with this being zero bytes, I'm not losing sleep over it, but I'd
be interested in suggestions.

David Black
dblack@pilot.njin.net

tchrist@convex.COM (Tom Christiansen) (02/24/91)

From the keyboard of dblack@pilot.njin.net (David Alan Black):
:Here's a little brain-teaser:
:I've managed, though faulty sed syntax, to end up with a 0-byte file
:called "-e".
:The question is: how do I delete it????

Anybody for a daily mini-FAQ posting that says to read the FAQ 
before posting????

--tom
-- 
"UNIX was not designed to stop you from doing stupid things, because
 that would also stop you from doing clever things." -- Doug Gwyn

 Tom Christiansen                tchrist@convex.com      convex!tchrist

Dan_Jacobson@ATT.COM (02/24/91)

>>>>> On 23 Feb 91 15:42:02 GMT, dblack@pilot.njin.net (David Alan Black) said:

David> I've tried:
David> rm \-e
[...]

rm ./-e

OoOh, I'm first to answer!  Also you are supposed to read the
"frequently asked questions lists" prominently posted once a month.
-- 
Dan_Jacobson@ATT.COM  Naperville IL USA  +1 708-979-6364

gwyn@smoke.brl.mil (Doug Gwyn) (02/24/91)

In article <Feb.23.10.42.01.1991.12994@pilot.njin.net> dblack@pilot.njin.net (David Alan Black) writes:
>I've managed, though faulty sed syntax, to end up with a 0-byte file
>called "-e".
>The question is: how do I delete it????

rm -- -e
rm ./-e
rm -ri .

darcy@druid.uucp (D'Arcy J.M. Cain) (02/27/91)

In article <1991Feb23.161820.13685@convex.com> Tom Christiansen writes:
>From the keyboard of dblack@pilot.njin.net (David Alan Black):
>:Here's a little brain-teaser:
>:[ rm files starting with "-" question deleted]
>Anybody for a daily mini-FAQ posting that says to read the FAQ 
>before posting????

I don't know if you are serious or not but I have been thinking of a weekly
post of questions *NOT* to ask.  There must be at least one question
a day that shouldn't have been posted and the ensuing discussions and
incorrect responses waste even more bw.  So why not post a list of some
of the more common FAQs (FAFAQs?) as well as some general guidelines
about what is and isn't a suitable question.  Keep it short so that it
can be scanned easily point to the FAQ and put something in the subject
that makes it easy to kill.  Anyone see any particular problem?

Of course there will be a half dozen questions each week asking how to
kill the mini-FAQ.  :-)


-- 
D'Arcy J.M. Cain (darcy@druid)     |
D'Arcy Cain Consulting             |   There's no government
West Hill, Ontario, Canada         |   like no government!
+1 416 281 6094                    |