Created
April 27, 2022 15:19
-
-
Save neomantra/58ecd266429627930102e9c735b3b572 to your computer and use it in GitHub Desktop.
Extract PI from pi.neomantra.com
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
# Extract Pi from pi.neomantra.com | |
# IPv4 | |
dig pi.neomantra.com +short | |
# 3.141.59.26 | |
dig pi.neomantra.com +short | tr -d . | sed -re 's/^.{1}/&./' | |
# 3.1415926 | |
dig pi.neomantra.com +short | sed -r -e 's/\.//g' -e 's/^.{1}/&./' | |
# 3.1415926 | |
# IPv6 | |
dig pi.neomantra.com AAAA +short | |
# 3141:5926:5358:9793:2384:6264:3383:2795 | |
dig pi.neomantra.com AAAA +short | tr -d : | sed -re 's/^.{1}/&./' | |
# 3.1415926535897932384626433832795 | |
dig pi.neomantra.com AAAA +short | sed -r -e 's/://g' -e 's/^.{1}/&./' | |
# 3.1415926535897932384626433832795 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment