运维网's Archiver
论坛
›
Shell/Powershell
› linux自学_shell脚本for详解
wxyfj
发表于 2018-8-27 10:26:00
linux自学_shell脚本for详解
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
页:
[1]
查看完整版本:
linux自学_shell脚本for详解