VAR1="Hello,"
VAR2=" World"
VAR3="$VAR1$VAR2"
echo "$VAR3"
foo="Hello"
foo="${foo} World"
echo "${foo}"
> Hello World
Bash also supports a += operator as shown in this code:
A="X Y"
A+=" Z"
echo "$A"
output
X Y Z
Var_start=“https.//www.”
Var_end=“.com”
echo $Var_start$1$Var_end