linux-guide
stable
目录:
工具
配置
访问控制
SSH
shell脚本
[Ubuntu 16.04]dash和bash
set
变量
参数传递
流程控制
基本运算符
条件表达式
函数
输入和输出重定向
字符串
云服务器
TODO
linux-guide
Docs
»
shell脚本
Edit on GitHub
shell脚本
¶
目录:
[Ubuntu 16.04]dash和bash
dash
bash
sh vs. dash vs. bash
[[: not found
set
环境变量
set -eux
小结
变量
定义
使用
只读变量
重置变量
参数传递
特殊符号
$* vs. $@
流程控制
if
for
while
until
case
break/continue
基本运算符
expr
算术运算符
关系运算符
布尔运算符
逻辑运算符
字符串运算符
文件测试运算符
条件表达式
中括号
test
函数
定义
示例1
参数
示例2
输入和输出重定向
标准文件
重定向
/dev/null
字符串
语法
获取字符串长度
判断字符串是否以某些字符开头
判断字符串是否为空
删除字符串
提取字符串
Read the Docs
v: stable
Versions
latest
stable
Downloads
html
epub
On Read the Docs
Project Home
Builds
Free document hosting provided by
Read the Docs
.