Commit | Line | Data |
---|---|---|
21c4e167 H |
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 |