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

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
主站蜘蛛池模板: 舟山市| 淮阳县| 余姚市| 镇雄县| 日喀则市| 峨眉山市| 铜梁县| 盐城市| 花莲市| 罗江县| 德安县| 普洱| 祥云县| 建德市| 紫金县| 大连市| 皋兰县| 舒兰市| 博罗县| 平泉县| 罗城| 泌阳县| 四会市| 易门县| 乌兰浩特市| 兴安盟| 舞钢市| 南岸区| 广西| 兴城市| 宁波市| 灵石县| 扎兰屯市| 芮城县| 左权县| 两当县| 周至县| 樟树市| 苍南县| 遂昌县| 任丘市|