I have (roughly) the following code:
read -p "What is your variable: " WHATIS
cat > ./test.txt <<EOF
This should be a bunch of lines
I want this "variable" to be imbedded
it is ${WHATIS}
EOF
I keep getting the literal output of "${WHATIS}.
I did this ages ago but can not remember how or find the code I used.
Any help would be appreciated