似乎直接加就可以
#!/bin/sh str1="asdfasdf" str2="123" str3=$str1$str2 echo $str3
参考:
shell中,可以字符串相加吗?_jfkidear的博客-CSDN博客_shell 字符串相加