Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

How to concatenate string variables in Bash

Bash also supports a += operator as shown in this code:

A="X Y"
A+=" Z"
echo "$A"
output

X Y Z
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #concatenate #string #variables #Bash
ADD COMMENT
Topic
Name
6+3 =