Skip to content
Advertisement

How echo grave accent symbol in bash

JavaScript

(_ is input, i think)

Advertisement

Answer

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

JavaScript

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.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement