Re: file naming

2002-04-05 Thread Bill Crawford
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) ___

Re: file naming

2002-04-04 Thread Mike Burger
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 "-

Re: file naming

2002-04-04 Thread Saul Arias
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"

Re: file naming

2002-04-04 Thread Bill Crawford
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

Re: file naming

2002-04-04 Thread Bill Crawford
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

Re: file naming

2002-04-04 Thread Mike Burger
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: > >

file naming

2002-04-04 Thread daniel
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? _