On Thu, 4 Apr 2002, Mike Burger wrote:
> I stand corrected...thank you.
Well, I learnt the hard way ... because I used to keep giving the
wrong options to certain commands and creating files called "-" when
I wanted to feed stuff to stdout :o)
___
I stand corrected...thank you.
On Thu, 4 Apr 2002, Bill Crawford wrote:
> On Thu, 4 Apr 2002, Mike Burger wrote:
>
> > You're pretty much out of luck. Since most programs have their command
> > line parameters specified with a "-" or "--", you're going to have to
> > settle for having the "-
cp /dev/null ./-file.txt
or simply
touch ./-file.txt
On Thu, 2002-04-04 at 14:36, daniel wrote:
> hello again list
> got a simple question here:
>
> i know how to do this:
>
> cp /dev/null file.txt
>
> but what if i want the file name to start with a "-"?
>
> cp /dev/null "-file.txt"
On Thu, 4 Apr 2002, Mike Burger wrote:
> You're pretty much out of luck. Since most programs have their command
> line parameters specified with a "-" or "--", you're going to have to
> settle for having the "-" in the middle of the name, somewhere.
No, you just type "./-file.txt" ... or put
On Thu, 4 Apr 2002, daniel wrote:
> but what if i want the file name to start with a "-"?
>
> cp /dev/null "-file.txt" # doesn't work
> cp /dev/null \-file.txt# doesn't work either
>
> any suggestions?
:>-file.txt
___
Redhat-list maili
You're pretty much out of luck. Since most programs have their command
line parameters specified with a "-" or "--", you're going to have to
settle for having the "-" in the middle of the name, somewhere.
On Thu, 4 Apr 2002, daniel wrote:
> hello again list
> got a simple question here:
>
>
hello again list
got a simple question here:
i know how to do this:
cp /dev/null file.txt
but what if i want the file name to start with a "-"?
cp /dev/null "-file.txt" # doesn't work
cp /dev/null \-file.txt# doesn't work either
any suggestions?
_