Sunday 16 June 2019

Linux One-Liners

Ping Sweep


for i in {1..10}; do ping -W1 -c 1 -n 192.168.1.$i | tr '\n' ' ' | grep '1 packets received' | cut -d ' ' -f 2 ; done