shell yes_or_no
来源:互联网 发布:查看mac镜像文件 编辑:程序博客网 时间:2024/06/05 08:56
yes_or_no()
{
echo "Is your name $* ?"
while [ true ]
do
echo -n "Enter yes or no: "
read x
case "$x" in
y | yes ) return 0;;
n | no ) return 1;;
* ) echo "Answer yes or no"
esac
done
}
read -s -n1 -p "Press any key to continue ... "
- shell yes_or_no
- linux shell中yes_or_no()函数返回值的问题
- shell
- shell
- shell
- shell
- shell
- Shell
- shell
- Shell
- shell
- shell
- SHELL
- Shell
- shell
- shell
- shell
- shell
- NTFS文件系统详细分析
- asp.net mvc - View/ViewEngine
- FAT文件系统原理详细介绍
- 如何成为一名专家级的开发人员
- exfat文件系统相关数据结构以及数据恢复方法
- shell yes_or_no
- 最近几日开发的感想
- 数学英语词汇 (1)
- 浅谈网络营销
- opencv 实现加载并显示图像
- js Object对象
- 网络整合营销之策略
- 网络整合营销之策略
- 服务器群集 文件同步 数据库同步 haproxy