/ Published in: Bash
Single line for linux shell
Expand |
Embed | Plain Text
export i=0; while [[ $((++i)) -le 254 ]]; do ping -c1 -w1 192.168.25.$i | grep ttl | cut -d " " -f4 | cut -d ":" -f1; done;
You need to login to post a comment.
Single line for linux shell
export i=0; while [[ $((++i)) -le 254 ]]; do ping -c1 -w1 192.168.25.$i | grep ttl | cut -d " " -f4 | cut -d ":" -f1; done;
You need to login to post a comment.