aClassicKoder
aClassicKoder

Reputation: 55

How echo grave accent symbol in bash

$ echo "`"
> _

(_ is input, i think)

Upvotes: 0

Views: 1112

Answers (1)

JRFerguson
JRFerguson

Reputation: 7516

Escape the grave accent. It's special to the shell and is one way (the archaic one) to do command substitution.

echo \`

As noted by @dave_thompson_085 an alternative is to use single quotes in lieu of the double quotes you used, or to specify the hexadecimal representation of the grace accent, by doing echo "\x60". You can find the hexadecimal equivalents of ASCII characters from the ascii manpages.

Upvotes: 1

Related Questions