docs
[mirrors/Programs.git] / bash / pingscan.sh
1 echo pings:
2 for i in $(seq 0 255); do
3 host=$(echo "$1" | sed -e "s/\*/$i/g");
4 echo -ne "$host\r";
5 ping -bc 1 -W 1 "$host" &>/dev/null &
6 pids="$! $pids";
7 done;
8 echo
9 echo pongs:
10 wait $pids;
11 arp -a | grep -v incomplete
This page took 0.233021 seconds and 4 git commands to generate.