Created
January 4, 2020 18:39
-
-
Save lovelypool/5d2709ea8ea766f8545d32e72c32ba73 to your computer and use it in GitHub Desktop.
This file contains 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 | |
#credit to ilap | |
sed -e '/ address/!d' -e '/#/d' -e 's@^.*/ip./\([^/]*\)/tcp/\([0-9]*\).*@\1 \2@' cfg.all | \ | |
while read addr port | |
do | |
tcpping -x 1 $addr $port | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment