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.
排序-堆排序(heapSort)
2.
堆排序(heapSort)
3.
堆排序(HEAPSORT)
4.
SafetyNet簡要梳理
5.
中年轉行,擁抱互聯網(上)
6.
SourceInsight4.0鼠標單擊變量 整個文件一樣的關鍵字高亮
7.
遊戲建模和室內設計那個未來更有前景?
8.
cloudlet_使用Search Cloudlet爲您的搜索添加種類
9.
藍海創意雲丨這3條小建議讓編劇大大提高工作效率!
10.
flash動畫製作修改教程及超實用的小技巧分享,碩思閃客精靈
本站公眾號
歡迎關注本站公眾號,獲取更多信息
相關文章
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結束本次循環
>>更多相關文章<<