I'm pretty new to bash,
I learned about using variables like this:
var=$(cat << EOF
this is echoed
and this as well...
EOF
)
echo "$var"
if the above code is called using a variable
how do you call the approach below? is this called a using a definition
?
def="This should be echoed\nand this as well...\n"
printf "$def"
I'm asking about the right terminology of the second approach.