Bash Scripting - Variables
Given the script:
What is the output and why?
var1="Hello" var2="World" combined="$var1 $var2" echo $combined
What is the output and why?
var1="Hello" var2="World" combined="$var1 $var2" echo $combined
var1 and var2 are combined with a space between them inside double quotes.$var1 $var2 becomes "Hello World".15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions