位置参数 访问命令行 确定参数个数 shift - 访问多个参数的利器 简单应用 Shell 函数中使用位置参数 处理集体位置参数 一个更复杂的应用 总结 拓展阅读 位置参数 One feature that has been missing from our programs is the ability to accept an...
流程控制:while/until 循环 循环 while 跳出循环 until 使用循环读取文件 总结 拓展阅读 流程控制:while/until 循环 In the previous chapter, we developed a menu-driven program to produce various kinds of syst...
读取键盘输入 read - 从标准输入读取数值 选项 IFS 校正输入 菜单 总结归纳 友情提示 拓展阅读 读取键盘输入 The scripts we have written so far lack a feature common in most computer programs — interactivity. That is...
自顶向下设计 Shell 函数 局部变量 保持脚本运行 总结归纳 拓展阅读 自顶向下设计 As programs get larger and more complex, they become more difficult to design, code and maintain. As with any large project, i...