linux自学_shell脚本for详解
生活随笔
收集整理的這篇文章主要介紹了
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
轉載于:https://blog.51cto.com/eden51/1852453
總結
以上是生活随笔為你收集整理的linux自学_shell脚本for详解的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Linux系统启动流程(4)制作自定义l
- 下一篇: 使用sax解析xml