官术网_书友最值得收藏!

Chapter 2. Creating Interactive Scripts

In Chapter 1, What and Why of Scripting with Bash, of this book we learned how to create a script and use some of its basics elements. These include optional parameters that we can pass through to the script when it is executed. In this chapter, we will extend this by using the read shell built-in command to allow for interactive scripts. Interactive scripts are scripts that prompt for information during the script execution. In doing so, we will cover the following topics:

  • Using echo with options
  • Basic script using read
  • Adding comments
  • Enhancing read scripts with prompts
  • Limiting the number of entered characters
  • Control the visibility of the entered text
  • Simple scripts to enforce our learning
主站蜘蛛池模板: 靖州| 阳原县| 嘉义县| 科技| 固原市| 南澳县| 信宜市| 曲沃县| 北海市| 承德县| 浏阳市| 南川市| 法库县| 巴东县| 桂林市| 高雄市| 赤水市| 桦甸市| 武宁县| 封开县| 盐边县| 清涧县| 礼泉县| 资中县| 烟台市| 新化县| 宽甸| 香河县| 和田市| 柘城县| 泰顺县| 海城市| 遵化市| 双城市| 六盘水市| 辰溪县| 阿勒泰市| 泸水县| 杭锦后旗| 板桥市| 兰西县|