Date: Mon, 4 Mar 1996 09:05:27 +0100 (MET) From: "Christoph P. Kukulies" <kuku@gilberto.physik.rwth-aachen.de> To: dkelly@hiwaay.net (David Kelly) Cc: james@teamos2.org, freebsd-questions@freebsd.org Subject: Re: How to delete strange filename Message-ID: <199603040805.JAA17969@gilberto.physik.rwth-aachen.de> In-Reply-To: <v02140b01ad602c283c06@[206.104.20.188]> from "David Kelly" at Mar 3, 96 11:15:42 pm
next in thread | previous in thread | raw e-mail | index | archive | help
> > >Okay, stupid question here: > > > >Somehow, I've got a file called "-i" in my home directory. How do I > >remove it? Everything I've tried attempts to parse the "-i" as a > >parameter, even with quotes (all varieties). > > > >Is there something I can use to change the switch character, like some of > >the DOS C library calls can ? > > rm ./-i rm has an escape for these strange filename cases. Use: rm -- -i > > The leading "./" will cause the switch character detect to fail, yet it > says, "This directory, the file -i" which is what you want. > > -- > David Kelly N4HHE, n4hhe@amsat.org, dkelly@hiwaay.net > ============================================================= > To invent, you need a good imagination and a pile of junk. > - Thomas Edison > > > --Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199603040805.JAA17969>