该shell脚本主要是通过ping来批量检测网段内存活主机,执行结果保存在脚本当前目录下的IPinfor目录中,写的比较匆忙,希望大家留下更好的建议. #!/usr/bin/env bash########################################################Blog:http://www.cnblogs.com/shenlanqianlan/# function: Batch detection of live hosts# Email:1035351…