13 lines
284 B
Bash
Executable File
13 lines
284 B
Bash
Executable File
#!/bin/sh
|
|
|
|
|
|
TAB="$(printf -- '\t')"
|
|
|
|
{
|
|
printf "%s\t" "curl ipinfo.io/ip"
|
|
curl ipinfo.io/ip 2>/dev/null
|
|
echo
|
|
printf "%s\t" "dig +short myip.opendns.com @resolver1.opendns.com"
|
|
dig +short myip.opendns.com @resolver1.opendns.com 2>/dev/null
|
|
} | column -t -s "${TAB}"
|