shell条件判断式语句
来源:互联网 发布:江苏老快三遗漏数据 编辑:程序博客网 时间:2024/05/24 04:14
例:
[root@localhost ~]# lsaa anaconda-ks.cfg cangls install.log.syslog sh test3.sh tmpabc bols install.log japan test2.sh test.sh###判断root下install.log文件是否存在 注意空格[root@localhost ~]# [ -e /root/install.log ] [root@localhost ~]# echo $?0[root@localhost ~]# [ -e /root/installs.slog ] [root@localhost ~]# echo $?1[root@localhost ~]# [ -e /root/install.log ] && echo yes || echo noyes[root@localhost ~]# [ -e /root/install.logs ] && echo yes || echo nono
0 0
- shell条件判断式语句
- shell 条件判断式语句
- shell条件判断式语句中
- shell条件判断式语句下
- linux shell条件判断语句
- linux shell条件判断语句
- linux shell条件判断语句
- Shell条件判断语句上
- shell条件判断式
- shell -- 条件判断式
- shell-条件判断式
- linux shell中的条件判断语句
- 04 shell条件测试和判断语句
- shell编程基础(3)条件判断语句
- shell 条件判断语句参数介绍
- shell之条件测试和判断语句
- shell 语句中条件判断常用值
- shell脚本的条件判断语句
- 虚拟机中Linux与本机Windows之间的通讯调试
- wxWidgets 小记
- weblogic禁止访问控制台问题
- LRU Cache分析
- 关于分布式程序 java的内存管理浅谈
- shell条件判断式语句
- 测试文献Iterative MAP equalization %表达式(18)-(19)
- 剑指oofer 25 - 二叉树中和为某一值的路径
- 终端下SQLite的使用
- 递归优化
- Java中Vector与ArrayList的区别详解
- 使用junit测试SpringMVC
- 工作周报045
- SpringMVC3的中文乱码问题