问题:
In PHP, strings are concatenated together as follows: 在PHP中,字符串按如下方式串联在一块儿: this
$foo = "Hello"; $foo .= " World";
Here, $foo
becomes "Hello World". 在这里, $foo
变成“ Hello World”。 spa
How is this accomplished in Bash? 如何在Bash中完成? .net
解决方案:
参考一: https://stackoom.com/question/HXqp/如何在Bash中链接字符串变量参考二: https://oldbug.net/q/HXqp/How-to-concatenate-string-variables-in-Bash