geoiplookup.sh
· 170 B · Bash
Orginalformat
## depends on curl and jq
function geoiplookup() {
GEOIPURL=https://json.geoiplookup.io/"$1"
curl -s $GEOIPURL | jq '.ip, .org, .hostname, .city, .country_name'
}
1 | ## depends on curl and jq |
2 | function geoiplookup() { |
3 | GEOIPURL=https://json.geoiplookup.io/"$1" |
4 | curl -s $GEOIPURL | jq '.ip, .org, .hostname, .city, .country_name' |
5 | } |