Last active
December 24, 2022 05:30
-
-
Save kazuhito-m/e9498937d81fdf55d67f9fa191507a50 to your computer and use it in GitHub Desktop.
同一ネットワーク内で応答のあるIPをシュッと調べる
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
IP_HEAD='192.168.1.' | |
echo ${IP_HEAD}{1..254} \ | |
| xargs -P256 -n1 ping -s1 -c1 -W1 \ | |
| grep ttl | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
気になったところを修正してみました。
https://gist.github.com/kmikage/a39e30e18aa95451d222ec514addd01c