Created
November 27, 2020 07:06
-
-
Save pd12bbf7608ae1/32faa2fc494977fa2b73ed71450d4b3c to your computer and use it in GitHub Desktop.
ip location
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
| #!/bin/bash | |
| URL='https://ip.zxinc.org/api.php' | |
| curl -sS "$URL" -d "type=json" -d "ip=${1}" | sed -n '2,3p' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment