📜  选择循环 bash - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:37             🧑  作者: Mango

代码示例1
#!/bin/bash
PS3="Enter your choice ==> "
echo "What do you do?"
 
select answer in Student Businessman Professional Fresher
do
    echo "Great! You're a $answer!"
done