linux自学_shell脚本for详解
2016-09-13 22:15
309 查看
for 循环 一般把变量都轮询一遍去执行一些任务
如开机启动程序精简
for cheng in `chkconfig --list|grep 3:on |awk ‘{print $1}’`
do
chkconfig $cheng off
done
for cheng in ssh crond
do
chkconfig $cheng on
done
如开机启动程序精简
for cheng in `chkconfig --list|grep 3:on |awk ‘{print $1}’`
do
chkconfig $cheng off
done
for cheng in ssh crond
do
chkconfig $cheng on
done
相关文章推荐
- linux自学_shell脚本if详解
- linux自学_shell脚本case详解
- linux自学_shell脚本while详解
- Linux——Shell管理脚本(基础详解--精)
- shell脚本之循环语句for,while,until用法的详解
- Linux 在Shell脚本中使用函数实例详解
- 解决部分linux下不能shell脚本失效的解决办法 : not found Bad for loop variable
- linux脚本Shell之awk详解(二)
- 详解Linux--shell脚本之正则表达式
- linux下shell for 循环执行不等待php脚本返回
- mktemp命令_Linux mktemp 命令用法详解:创建临时文件供shell脚本使用
- Linux test 脚本 shell 命令详解
- Shell 脚本之循环语句(for,while,until)以及case,select,break,continue实例详解
- Java for linux Runtime 执行需要转义的脚本(shell) 分类: Linux Java 2014-12-25 20:35 344人阅读 评论(2) 收藏
- 详解Unix/Linux中Shell脚本的输入输出 .
- Java for linux Runtime 执行需要转义的脚本(shell) 分类: Linux Java 2014-12-25 20:35 343人阅读 评论(2) 收藏
- linux学习--shell脚本for
- 转载]Linux 编写shell脚本(2)if for while
- linux的shell脚本中if,for,while的解析与应用
- linux下shell脚本的使用——安装madplay播放器,sed函数详解