shell条件判断式语句中
来源:互联网 发布:网络基础知识学习 编辑:程序博客网 时间:2024/06/15 23:05
一 两个文件之间进行比较
二 实战
[root@localhost ~]# ln /root/student.txt /tmp/stu
[root@localhost ~]# [ /root/student.txt -ef /tmp/stu ] && echo yes || echo no
yes
[root@localhost ~]# [ /root/initial-setup-ks.cfg -ef /tmp/stu ] && echo yes || echo no
no
三 两个整数之间的比较
四 实战
[root@localhost ~]# [ 23 -ge 22 ] && echo yes || echo no
yes
[root@localhost ~]# [ 22 -ge 22 ] && echo yes || echo no
yes
[root@localhost ~]# [ 12 -ge 22 ] && echo yes || echo no
no
[root@localhost ~]# [ 12 -le 22 ] && echo yes || echo no
yes
阅读全文
0 0
- shell条件判断式语句中
- shell条件判断式语句
- shell 条件判断式语句
- shell 语句中条件判断常用值
- shell条件判断式语句下
- linux shell条件判断语句
- linux shell条件判断语句
- linux shell条件判断语句
- Shell条件判断语句上
- Linux shell scripts中条件判断语句中的常用参数
- shell条件判断式
- shell -- 条件判断式
- shell-条件判断式
- shell中条件判断if
- shell中IF条件判断
- linux shell中的条件判断语句
- 04 shell条件测试和判断语句
- shell编程基础(3)条件判断语句
- 你的解耦战术,决定了架构高度!
- maven介绍及环境搭建
- Shell条件判断语句上
- 序列化中子父类构造函数问题
- 选择排序
- shell条件判断式语句中
- shell条件判断式语句下
- maven常用的构建命令
- 第一个maven案例hellomaven
- 学习shell小窍门
- 趣图:我是不是被录取了??
- 九度1005
- shell单分支if语句
- 事件分发