Subject: Re: Stupid question
To: Rodney M. Hopkins <rhopkins@sunflower.com>
From: David A. Gatwood <marsmail@globegate.utm.edu>
List: port-mac68k
Date: 11/17/1997 13:12:10
On Mon, 17 Nov 1997, Rodney M. Hopkins wrote:
> At 11:40 PM 11/16/97 -0500, you wrote:
> >On Sun, 16 Nov 1997 21:57:15 -0600,
> >"Rodney M. Hopkins" <rhopkins@sunflower.com> wrote:
> >> At 07:18 PM 11/16/97 -0800, you wrote:
> >> >
> >> >If you simple want to remove it, try:
> >> >
> >> >rm -- -axl
> >>
> >> Kick butt! This worked like I charm!
> >>
> >> I knew there was such a facility in UN*X but I couldn't for the life of me
> >> remember it. I was trying /- and \- and '- and all kinds of other stuff,
> >
> >Shouldn't "rm ./-axl" also work? (provided it's in the current directory)
>
> Yup! That works too. I'd never thought of that, as I very rarely use that
> notation. Just goes to prove, there's more than one way to delete a file. ;)
Yeah. In fact, rm \"-axl\" should work, too (quotes to indicate that it's
not a flag, backslashes to keep the shell from removing the quotes when
turning it into an argument. That might be shell-dependent, tho.
Alternatively, ls *axl and if it's the only one, rm *axl.
David
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/CC/FA/H/L/MC/M/MU/PA/TW d-@ s:>- a-- C++++>$ UBLAS*++++>$
P+?>$ L+++>$ !E--- W+++>$ N++(+++)>+++$ !o? K-? !w--- !O
M++>$ !V-- PS+>$ !PE- Y+>$ PGP+>$ t+++>$ 5+>++++$ !X- !R tv+>$
b++>$ !DI !D- G++(+++)>$ e>++++ h--! r--- !y-
------END GEEK CODE BLOCK------