byobu/usr/bin/whats-my-public-ip

6 lines
123 B
Bash

#!/bin/sh
#wget http://ipinfo.io/ip -qO -
curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//'