elif2
来自「shell是重要的脚本语言和工具 本文件夹中搜集了比较经典的shell入门的代」· 代码 · 共 17 行
TXT
17 行
#!/bin/shecho "Is it morning? Please answer yes or no"read timeofdayif [ "$timeofday" = "yes" ]then echo "Good morning"elif [ "$timeofday" = "no" ]; then echo "Good afternoon"else echo "Sorry, $timeofday not recognized. Enter yes or no" exit 1fiexit 0
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?