linux自學_shell腳本for詳解

for 循環 通常把變量都輪詢一遍去執行一些任務ssh


如開機啓動程序精簡ide

for cheng in `chkconfig --list|grep 3:on |awk ‘{print $1}’`it

doclass

 chkconfig $cheng offawk

done變量

for cheng in ssh crond循環

dogrep

 chkconfig $cheng on程序

donedi

相關文章
相關標籤/搜索