测试筛选
排序
SHELL-for循环的使用
一、for嵌套 1.1、for嵌套if 案例:输出1-9,当输出5时停止输出 案例代码 #!/bin/bash # #Author: www.yunweidaohang.com #Created Time: #Release: #Description:输出1-9,当输出5时停止输出 fo...
SHELL-检测本机当前用户是否为超级管理员
#!/bin/bash if [ $USER == 'root' ];then yum ‐y install vsftpd else echo '您不是管理员,没有权限安装软件' fi 检测本机当...