# iplist.txt: 10.0.2.3 10.0.2.4 10.0.2.2 10.0.2.15
#!/bin/bash # ipsweep.sh if [ "$1" == "" ] then echo "Syntax: ./ipsweep.sh xxx.xxx.xxx" else for ip in `seq 1 254`; do ping -c 1 $1.$ip | grep "64 bytes" | cut -d " " -f 4 | tr -d ":" & done fi
Last updated 4 years ago
Was this helpful?