Concat strings in a shell script

Webnet picture Webnet · Feb 25, 2012 · Viewed 192.1k times · Source

How can I concat strings in shell? Is it just...

var = 'my';
var .= 'string';

?

Answer

cnicutar picture cnicutar · Feb 25, 2012

How about this:

var="${var}string"