日志正文
|
||
六、 快捷操作符&& #!bin/sh [ -r “./test” ] && echo “test can be read” //[]内为真,后边就会执行,与if相似 七、 case #!/bin/sh num=”aaa” case $num //判断变量是否等于下面字符串 aaa) echo “this is aaa”;; "bbb") echo “this is bbb”;; esac
最后修改于 2010-10-15 22:16
阅读(?)评论(0)
上一篇: shell学习5
下一篇:Oracle关键字作为字段名
|
||
评论 想第一时间抢沙发么?