Skip to content

Instantly share code, notes, and snippets.

@HacDan
Created October 19, 2023 16:12
Show Gist options
  • Save HacDan/55655184b76d63512217141d23e62247 to your computer and use it in GitHub Desktop.
Save HacDan/55655184b76d63512217141d23e62247 to your computer and use it in GitHub Desktop.
geoip.sh
#!/bin/sh
curl -sS http://ip-api.com/json/$1 | jq -r '"City: " + .city + " State: " + .region + " Country: " + .country'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment