shell多线程快速检测内网ip是否存活
之前写了一篇shell检测内网ip是否存活,对内网ip检测实在是太慢了,最近闲得蛋疼,决定用多进程来解决.
#!/bin/bash # By rocdk890 # https://blog.slogra.com #Check the network is online cat /dev/null > ip_yes.txt cat /dev/null > ip_no.txt ip_num="192.168.1" read -p "Enter your network segment(Default ip: 192.168.1):" ip_num if...