Difference between revisions of "bash ping ip range"

From thelinuxwiki
Jump to: navigation, search
(Created page with "one liner for i in {1..255} ; do ping 192.168.1.$i -c 1 | grep "time=" ; done for i in {1..255} ; do net="192.168.1"; echo "ping $net.$i"; ping $net.$i -c 1 | grep "time=" ...")
 

Latest revision as of 17:36, 25 February 2013

one liner

for i in {1..255} ; do ping 192.168.1.$i -c 1 | grep "time=" ; done
for i in {1..255} ; do net="192.168.1"; echo "ping $net.$i"; ping $net.$i -c 1 | grep "time=" ; done