Re: [分享]Shell编程基础
发表于 : 2008-12-16 20:05
能不能搞个PDF出来?这个看着太累了
怎么可能。。。肯定不会输出2nd了!hengxin 写了:代码: 全选
有时候变量名可能会和其它文字混淆,比如: 代码: num=2 echo "this is the $numnd" 上述脚本并不会输出"this is the 2nd",只会打印"this is the "。 我在学习的时候,执行这段代码,得到的结果就是"this is the 2nd"