Last active
April 2, 2024 09:11
-
-
Save rllola/12b453b24eaea651cfc068c9cb0e2d59 to your computer and use it in GitHub Desktop.
Command to sort IPs by latency when using nmap
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
nmap -sn -iL ethereum_ips.txt | grep -Eo "((\(|)([0-9]{1,3}[\.]){3}[0-9]{1,3})(\)|$)|[0-9]+\.[0-9]+s" | tr -d '\015' | paste - - | sort -k 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment