select 菜单选择

最后更新于:2022-04-02 03:53:36

[TOC] ## select 结构 select结构主要用来生成简单的菜单 语法 ``` select name [in list] do commands done ``` 示例 ``` #! /bin/bash select item in hello word hao are you do echo "you select is ${item}" break done echo "compent" ``` 执行 ``` 1) hello 2) word 3) hao 4) are 5) you #? ```
';