通则

编写脚本,使用for和while分别实现192.168.0.0/24网段内,地址是否能够ping通,若ping通则输出"success!",若ping不通则输出"fail!"

for方法: [14:20:07 root@centos8 ~]#cat ping_for.sh#!/bin/bash​# # Copyright (C) 2021 IEucd Inc. All rights reserved.## 文件名称:ping_for.sh# 创 建 者:TanLiang# ......
通则 quot ping 网段 脚本
共1篇  :1/1页 首页上一页1下一页尾页