Date: Mon, 4 Mar 1996 16:18:05 +0100 (MET) From: "Christoph P. Kukulies" <kuku@gilberto.physik.rwth-aachen.de> To: chuckr@Glue.umd.edu (Chuck Robey) Cc: james@teamos2.org, freebsd-questions@FreeBSD.ORG Subject: Re: How to delete strange filename Message-ID: <199603041518.QAA19349@gilberto.physik.rwth-aachen.de> In-Reply-To: <Pine.OSF.3.91.960304091215.11752A-100000@thurston.eng.umd.edu> from "Chuck Robey" at Mar 4, 96 09:13:30 am
next in thread | previous in thread | raw e-mail | index | archive | help
>
> On Sun, 3 Mar 1996, James FitzGibbon wrote:
>
> >
> > 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).
The problem only is that sometimes the filename contains ctrl characters
<cr>, backspace and such and you can't figure out what the filename really
is.
I use rm -i * (or a narrower pattern) in such a case and shoot out the
respective file.
> >
> > Is there something I can use to change the switch character, like some of
> > the DOS C library calls can ?
>
> When I get some really strange filename, I write up a really short C
> program with one call to unlink("really_strange_filename"). It's worked
> in every case.
>
> >
> >
> > j.
> >
> > PS: Please reply directly, as I'm not on the list.
> >
> >
> > ----------------------------------------------------------------------------
> > James FitzGibbon james@teamos2.org
> >
> > TeamOS/2 Online admin Voice:(416)410-0100
> > Fax:(416)410-0100
> > ----------------------------------------------------------------------------
> >
>
> ==========================================================================
> Chuck Robey chuckr@eng.umd.edu, I run FreeBSD-current on n3lxx + Journey2
>
> Three Accounts for the Super-users in the sky,
> Seven for the Operators in their halls of fame,
> Nine for Ordinary Users doomed to crie,
> One for the Illegal Cracker with his evil game
> In the Domains of Internet where the data lie.
> One Account to rule them all, One Account to watch them,
> One Account to make them all and in the network bind them.
>
>
>
--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?199603041518.QAA19349>
