Add sleep statement to pingsweep.

This commit is contained in:
Kaj Forney 2020-12-01 15:59:50 -07:00
parent ea15d547b2
commit 4e36f6e507
Signed by: kforney
GPG key ID: 3AB4E2E04CEF656F

View file

@ -1,4 +1,5 @@
#!/bin/bash
for ip in $(seq 1 254); do
ping -c 1 172.30.0.$ip |grep "bytes from" |cut -d" " -f4|cut -d";" -f1&
ping -c 1 172.30.0.$ip |grep "bytes from" |cut -d" " -f4|cut -d";" -f1&
sleep 0.01
done