cosi' come utilizzare il link suggerito da killer79:
$ lynx -dump http://whatismyip.com/ | head -1