JavaShuo
欄目
標籤
54.shell腳本之for循環
時間 2020-01-26
標籤
54.shell
shell
腳本
循環
欄目
Unix
简体版
原文
原文鏈接
需求1:批量探測某個網段的主機存活狀態,將存活的主機存入ok.txt文件中。 方式一: [root@web01 for]# cat for3.sh #!/usr/bin/bash for i in {1..254} do { ip=10.0.0.$i ping -W1 -c1 $ip &> /dev/null if [ $? -eq 0 ];then echo "$ip 存活" >>
>>阅读原文<<
相關文章
1.
shell腳本之for循環
2.
shell腳本for循環
3.
shell腳本--------for循環
4.
shell腳本 for循環
5.
shell腳本學習之for循環
6.
shell for循環、循環變量值付給其餘shell腳本
7.
shell腳本-循環
8.
shell腳本for循環_Shell腳本初學者指南2:For循環
9.
Shell 之for 循環
10.
shell腳本 for循環、break跳出循環、continue結束本次循環
更多相關文章...
•
Swift for 循環
-
Swift 教程
•
Scala for循環
-
Scala教程
•
Kotlin學習(二)基本類型
•
Kotlin學習(一)基本語法
相關標籤/搜索
54.shell
shell腳本
循環
shell腳本語法
shell腳本實例
腳本
循環器
惡性循環
Unix
MySQL教程
PHP教程
PHP 7 新特性
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
Android Studio3.4中出現某個項目全部亂碼的情況之解決方式
2.
Packet Capture
3.
Android 開發之 仿騰訊視頻全部頻道 RecyclerView 拖拽 + 固定首個
4.
rg.exe佔用cpu導致卡頓解決辦法
5.
X64內核之IA32e模式
6.
DIY(也即Build Your Own) vSAN時,選擇SSD需要注意的事項
7.
選擇深圳網絡推廣外包要注意哪些問題
8.
店鋪運營做好選款、測款的工作需要注意哪些東西?
9.
企業找SEO外包公司需要注意哪幾點
10.
Fluid Mask 摳圖 換背景教程
本站公眾號
歡迎關注本站公眾號,獲取更多信息
相關文章
1.
shell腳本之for循環
2.
shell腳本for循環
3.
shell腳本--------for循環
4.
shell腳本 for循環
5.
shell腳本學習之for循環
6.
shell for循環、循環變量值付給其餘shell腳本
7.
shell腳本-循環
8.
shell腳本for循環_Shell腳本初學者指南2:For循環
9.
Shell 之for 循環
10.
shell腳本 for循環、break跳出循環、continue結束本次循環
>>更多相關文章<<