Created
August 13, 2024 10:46
-
-
Save LennyLizowzskiy/c77ab131d4f56bc67befc7999337366a to your computer and use it in GitHub Desktop.
IP info, usage: `ip-info.sh` or `ip-info.sh <IP-ADDR>`
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
#!/usr/bin/env bash | |
ARG=$@ | |
curl -s http://ip-api.com/json/$ARG?fields=66846719 | jq -r 'to_entries[] | "\u001b[32m\(.key)\u001b[0m: \u001b[34m\(.value)\u001b[0m"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
curl https://gist.githubusercontent.com/LennyLizowzskiy/c77ab131d4f56bc67befc7999337366a/raw/57db896e6601c7af715e11e8cfa8a713483581e3/ip-info.sh | sh