6 lines
83 B
Bash
Executable File

#!/bin/sh
# $1=geo for verbose look up
curl -s "https://ipinfo.io/${1:-}" | jq .