scripts/getpubip.sh
2024-02-28 11:04:05 +01:00

7 lines
111 B
Bash
Executable File

#!/bin/sh
IP="`wget -q -O - http://ipecho.net/plain`"
echo $IP
whois $IP | grep country: | cut -d ' ' -f9,10