In Ubuntu, I would like to get a file on disk that says:
foo $(bar)
I would like to create this file using the cat , for example
cat <<EOF > baz.txt type_magic_incantation_here_that_will_produce_foo_$(bar) EOF
The problem is the dollar sign. I have tried several combinations of backslash, single quote, and double quote characters and cannot make it work.
source share