How do I use echo with ` sign?

F

Frank

I am doing echo in Unix promt, but it gives me error on
unit>> echo "`asdf"
Unmatched `.

TIA
 
B

bplumhoff

Hi Frank,

That's OT here.

The ` starts an "instring" command. echo "`echo hello` world" would
result in hello world.

Change your command to echo '`asdf' or echo "\`asdf", for example.

HTH,
Bernd
 
F

Frank

Hi Frank,

That's OT here.

The ` starts an "instring" command. echo "`echo hello` world" would
result in hello world.

Change your command to echo '`asdf' or echo "\`asdf", for example.

HTH,
Bernd

Done, these two tricks worked.
echo '`asdf'
echo \`asdf
 
Top