Skip to content

Instantly share code, notes, and snippets.

@lovelypool
Created January 4, 2020 18:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lovelypool/5d2709ea8ea766f8545d32e72c32ba73 to your computer and use it in GitHub Desktop.
Save lovelypool/5d2709ea8ea766f8545d32e72c32ba73 to your computer and use it in GitHub Desktop.
#!/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