/ Published in: Bash
URL: http://lifehacker.com/5194123/display-your-public-ip-address-in-the-shell-prompt
Expand |
Embed | Plain Text
# curl version (e.g. OS X) curl -s myip.dk |grep '"Box"' | egrep -o '[0-9.]+' # wget version (e.g. Linux) wget -O - -q myip.dk |grep '"Box"' | egrep -o '[0-9.]+'
You need to login to post a comment.
