問題:
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