#!/bin/bash
word='hello,world'
str1="he said:"$word"!"
str2="he said:$word"
str3='he said:'$word'!'
echo $str1 $str2 $str3
shell脚本之字符串拼接
最新推荐文章于 2023-07-11 10:01:53 发布
#!/bin/bash
word='hello,world'
str1="he said:"$word"!"
str2="he said:$word"
str3='he said:'$word'!'
echo $str1 $str2 $str3