首页 > 编程知识 正文

shell脚本之字符串拼接

时间:2023-05-05 14:55:53 阅读:243251 作者:4638

#!/bin/bash word='hello,world' str1="he said:"$word"!" str2="he said:$word" str3='he said:'$word'!' echo $str1 $str2 $str3

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。