Shell脚本编程之判断语句

2019-09-23 09:21:44王振洲

num=2 
echo "this is the ${num}nd" 

这将打印: this is the 2nd

1.4 环境变量

由export关键字处理过的变量叫做环境变量。我们不对环境变量进行讨论,因为通常情况下仅仅在登录
脚本中使用环境变量。