echo "$"
echo "\$"
$ is special in double quotes, but there are some cases where it's interpreted literally:
$
"foo$"
"$'foo'"
To avoid relying on strange and shell specific behavior, any $ intended to be literal should be escaped with a backslash.
There was an error while loading. Please reload this page.