/ Published in: Bash
Single line for linux shell
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
export i=0; while [[ $((++i)) -le 254 ]]; do ping -c1 -w1 192.168.25.$i | grep ttl | cut -d " " -f4 | cut -d ":" -f1; done;