Answers for "loop print all devices in LAN"

0

loop print all devices in LAN

for ip in 192.168.1.{1..10}; do ping -c 1 -t 1 $ip > /dev/null && echo "${ip} is up"; done
Posted by: Guest on July-24-2021

Browse Popular Code Answers by Language