Email address obfuscation in effect -- please
click here to turn it off.
[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
I just did exactly that and it worked without any problem. You sure there
were no invisible chars or anything in the file name?
*^*^*^*
Have the courage to take your own thoughts seriously, for they will shape
you. -- Albert Einstein
On Thu, 1 Mar 2001, Mike Miller wrote:
> On Thu, 1 Mar 2001, Michael wrote:
>
> > In bash this isn't any big deal. I do it all the time just by
> > backslashing the spaces.
>
> What do you do? The file has the one character name -. Just a hyphen,
> what does that have to do with spaces? This won't work:
>
> rm \-
>
> I tried it. I even left tcsh and went to bash and it didn't work. But,
> like I said, this worked
>
> rm ./-
>
> It isn't hard in tcsh, but you have to know the trick, or think of it.
> Same for bash, I'm sure.
>
> Mike
>
>
> > On Thu, 1 Mar 2001, Mike Miller wrote:
> >
> > > While I was testing a shell script and learning a few tricks, I
> > > accidentally created a file called '-'. That was it's name -- just a
> > > hyphen. That file was a nightmare to delete
>
> --
> To manage your subscription, go to http://mlug.missouri.edu/members/edit.php
>
> Archives are available at http://mlug.missouri.edu/list-archives/
>
--
To manage your subscription, go to http://mlug.missouri.edu/members/edit.php
Archives are available at http://mlug.missouri.edu/list-archives/