第十三章 学习Shell Scripts
来源:互联网 发布:工业造型设计软件 编辑:程序博客网 时间:2024/05/20 04:48
1. 什么是 Shell Script
1.1 干嘛学习 shell scripts
1.2 第一支 script 的撰写与执行
1.3 撰写 shell script 的良好习惯建立
2. 简单的 shell script 练习
2.1 简单范例: 对谈式脚本, 随日期变化, 数值运算
2.2 script 的执行方式差异 (source, sh script, ./script)
3. 善用判断式
3.1 利用 test 指令的测试功能
3.2 利用判断符号 [ ]
3.3 Shell script 的默认变数($0, $1...): shift
4. 条件判断式
4.1 利用 if .... then: 单层简单条件, 多重复杂条件, 检验$1 内容, 网络状态, 退伍
4.2 利用 case ..... esac 判断
4.3 利用 function 功能
5. 循环 (loop)
5.1 while...do...done, until...do...done (不定循环)
5.2 for...do...done (固定循环): 账号检查, 网络状态 $(seq )
5.3 for...do...done 的数值处理
6. shell script 的追踪与 debug
7. 重点回顾
1.1 干嘛学习 shell scripts
1.2 第一支 script 的撰写与执行
1.3 撰写 shell script 的良好习惯建立
2. 简单的 shell script 练习
2.1 简单范例: 对谈式脚本, 随日期变化, 数值运算
2.2 script 的执行方式差异 (source, sh script, ./script)
3. 善用判断式
3.1 利用 test 指令的测试功能
3.2 利用判断符号 [ ]
3.3 Shell script 的默认变数($0, $1...): shift
4. 条件判断式
4.1 利用 if .... then: 单层简单条件, 多重复杂条件, 检验$1 内容, 网络状态, 退伍
4.2 利用 case ..... esac 判断
4.3 利用 function 功能
5. 循环 (loop)
5.1 while...do...done, until...do...done (不定循环)
5.2 for...do...done (固定循环): 账号检查, 网络状态 $(seq )
5.3 for...do...done 的数值处理
6. shell script 的追踪与 debug
7. 重点回顾
0 0
- 第十三章、学习 Shell Scripts
- 第十三章 学习Shell Scripts
- 鸟哥的Linux私房菜基础学习篇(第三版)之第十三章:shell scripts
- Linux鸟哥私房菜学习笔记_第十三章 Shell Scripts
- 鸟哥的Linux私房菜(基础篇)- 第十三章、学习 Shell Scripts
- 13章 学习Shell Scripts
- 第13章 学习shell scripts
- 学习 shell scripts
- 13 学习 shell scripts
- shell scripts学习(一)
- shell scripts学习(二)
- shell scripts学习(三)
- shell scripts学习(四)
- shell scripts学习(一)
- shell scripts学习(二)
- shell scripts学习(三)
- shell scripts学习(四)
- Shell scripts 学习
- is not in the sudoers file 解决(转)
- 个人总结--内部类
- 恋歌 --写给哈菲兹和兰波
- iptables配置http服务器及外网访问
- 确定比赛名次(HDU1285)(二维数组)
- 第十三章 学习Shell Scripts
- iOS- 支付宝支付
- 【机器学习】聚类算法:层次聚类
- 关于socket阻塞与非阻塞情况下的recv、send、read、write返回值
- Jquery ajax 介绍
- 获取当前电量是多少
- Uva 11491 Erasing and Winning(贪心)
- [状态压缩]poj3254 Corn Fields
- 九度 OJ 1092 Fibonacci