shell编程之变量测试

一 测试表达式 格式复杂,逻辑简单 变量测试在变量优化时使用     二 实战 [ [email protected] ~]# unset y [ [email protected] ~]# x=${y-2} [ [email protected] ~]# echo $x 2 [ [email protected] ~]# y="" [ [email protected] ~]# x=${y-2}
相关文章
相关标签/搜索