Hello,
In creating a Bourne shell script I can easily set a variable using the below:
The problem I am having is when I try to use an underscore. The below does not work:
Desired output: A_B
How can I use an underscore in a variable value when concantenatiing two together?
Thanks,
Michael42
In creating a Bourne shell script I can easily set a variable using the below:
Code:
VAR1="A"
VAR2="B"
VAR3="$VAR1.$VAR2"
echo $VAR3
Output: [b][COLOR=blue]A.B[/color][/b]
The problem I am having is when I try to use an underscore. The below does not work:
Code:
VAR1="A"
VAR2="B"
VAR3="$VAR1_$VAR2"
echo $VAR3
Output: [b][COLOR=blue]B[/color][/b]
Desired output: A_B
How can I use an underscore in a variable value when concantenatiing two together?
Thanks,
Michael42