Help regarding echo.

hi,

When I give an echo command as below:

echo -e {some text here}

I am getting the output as :

-e {some text here}

The question is how to remove that "-e" from the output. I just want the {some text here} as output.

Please give suggestions.

Thanks in advanve..

$echo -e "{some text here}"
{some text here}

or

$echo  {some text here}
{some text here}

It seems your echo does not support the -e switch. Korn shell? Why don't you try print or printf instead of echo ? And when using print , use - just before the arguments so that you don't get errors while printing strings starting with hyphens.

Ya I'm using ksh.Just did a work around and modified the text and problem solved.

Thanks anyway...

---------- Post updated at 02:09 AM ---------- Previous update was at 02:07 AM ----------

I tried that and its not working.

What is not working? and what did you try? Also, mention the ksh version (set emacs editing mode on ( set -o emacs ) and type Ctrl followed by V or try with echo ${.sh.version} ).