shell中类似for循环的还有一个就是select
来源:互联网 发布:黑客刷枪软件 编辑:程序博客网 时间:2024/05/21 21:35
#!/bin/bash
select var in "a" "b" "c" "d"
do
break
select var in "a" "b" "c" "d"
do
break
done
hero@ubuntu:~/xuexi$ ./h
1) a
2) b
3) c
4) d
#? a
hero@ubuntu:~/xuexi$
与for循环遍历的区别是,select会把需要遍历的变量列表做成一个选项列表,供用户选择
0 0
- shell中类似for循环的还有一个就是select
- 发现shell中for循环的一个妙用
- shell 中常用的for循环
- Shell Script中FOR循环的使用
- shell的for循环
- shell的for循环
- shell中for循环用法
- Shell中for循环详解
- shell中for循环总结
- shell中for循环用法
- shell中for循环总结
- shell中for循环总结
- shell 中for、while循环
- shell中for循环总结
- shell中for循环总结
- shell中for循环使用
- shell中for循环总结
- shell中for循环总结
- linux中ctrl+z和ctrl+c的区别
- 测试博文
- putty最佳的的颜色配置
- CodeForces 4B Before an Exam(数学+模拟)
- leetcode之Longest Common Prefix
- shell中类似for循环的还有一个就是select
- python实现二叉树
- 如何获取用户手机当前是否启动了android机的模拟位置功能
- Linux命令学习手册-rsync命令
- 试论计算机病毒及防护
- microsoft word has stopped working解决方法
- 如何安全修改cocoapods上的第三方代码
- vs2010快捷键大全
- Eclipse中10个最有用的快捷键组合