Concat strings in a shell script [duplicate]
It depends on the shell, but since question was tagged bash:
var='my'var=$var'string'
No. For various reasons.
# most sh-compatible shellsvar="my"var="$var string"# advanced shellsvar="my"var+=" string"