Skip to content

Instantly share code, notes, and snippets.

@rllola
Last active April 2, 2024 09:11
Show Gist options
  • Save rllola/12b453b24eaea651cfc068c9cb0e2d59 to your computer and use it in GitHub Desktop.
Save rllola/12b453b24eaea651cfc068c9cb0e2d59 to your computer and use it in GitHub Desktop.
Command to sort IPs by latency when using nmap
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