How can I concat strings in shell? Is it just...
var = 'my';
var .= 'string';
?
How can I concat strings in shell? Is it just...
var = 'my';
var .= 'string';
?
It depends on the shell, but since question was tagged bash:
var='my'
var=$var'string'
No. For various reasons.
# most sh-compatible shells
var="my"
var="$var string"
# advanced shells
var="my"
var+=" string"