shell
来源:互联网 发布:idm for mac 破解 编辑:程序博客网 时间:2024/06/08 06:46
目前流行的shell有ash、bash、ksh、csh、zsh等。
一般的linux系统都将bash作为默认的shell。
shell下的运算符
数值比较:
-eq: 等于则为真。
-ne : 不等于则为真。
-gt : 大于则为真。
-ge : 大于等于则为真。
-lt : 小于则为真。
-le : 小于等于则为真。
字符串比较:
= : 等于则为真。
!= :不等于则为真。
-z : 字符串长度为0则为真。
-n : 字符串长度不为0则为真。
shell下的循环语句
if条件语句
if[ ]
then
xxxxxx;
else
xxxxxx;
fi
for 循环
for [ ]
do
xxxxxxx;
done
while循环
while
xxxxxxx;
do
xxxxxxx;
done
0 0
- shell
- shell
- shell
- shell
- shell
- Shell
- shell
- Shell
- shell
- shell
- SHELL
- Shell
- shell
- shell
- shell
- shell
- shell
- shell
- POJ 2451 Uyuw's Concert (半平面交)
- CMake使用总结
- Java数组的学习
- Spring注解
- 组件加载的过程中,数据与视图无法同时呈现的问题
- shell
- 优化:一种将交叉验证(CV)速度提升10倍的方法
- Datatables重载数据的解决方案
- Android N的铃声问题(1)
- .clear的div的作用
- JVM内存区概述——InteviewOrientation
- 1104. Sum of Number Segments (20)[数学逻辑题]
- 数据流重定向
- Laravel(5.4版本)的基本增删改查操作