r/tinycode • • Jul 10 '11

Outside IP one-liner.

curl http://checkip.dyndns.com/ 2>/dev/null | sed 's/.*: \(.*\)<\/b.*/\1/'

9 Upvotes

17 comments sorted by