SHELL中字符串连接

在shell编程中会遇到多个子串连接在一起的问题,不需要像c++或java一样的+符号,只需要简单连起来即可

num = 10
str="hello world"

t="num="$num" str="$str

echo $t

 

posted @ 2015-07-20 15:15  dupuleng  阅读(512)  评论(0)    收藏  举报