Hi Guys,
while executing the following command : print "-ABC" is giving following error :
ksh: print: bad option(s)
I cannot use echo for some other reasons, so any other option ?
Hi Guys,
while executing the following command : print "-ABC" is giving following error :
ksh: print: bad option(s)
I cannot use echo for some other reasons, so any other option ?
$ print -ABC
ksh: print: -A: unknown option
$ print -- -ABC
-ABC
Use the standard command, printf.
printf "%s\n" "-ABC"