In my bash script I have this:
myapphome=/home/username/Documents/myapp
cat << 'EOT' > "$myapphome"/some.properties
dir.root="$myapphome"/app_data
EOT
Expected in some.properties:
dir.root=/home/username/Documents/myapp/app_data
But in actual it is:
dir.root="$myapphome"/app_data
What I am doing wrong here? I mean I want to expand the $myapphome in my some.properties file.