How do I use echo with ` sign?

  • Thread starter Thread starter Frank
  • Start date Start date
F

Frank

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

TIA
 
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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top