I have a variable called instdir that has the current directory. I need to pass its value to a multiline string that will be written to a file. As instdir finishes with a slash I can't do anything like this:
cat > test <<EOF
$instdir/final/path/to/file
EOF
But If I use $instdirfinal instead, it won't recognize the real instdir's value. What I suppose to do?
Here's the trick:
${instdir}final
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With