//View Tip #206
Similar Tips
» Get an ordered list of subdirectory sizes
» Being selfish - Kick all users except you
» Graph connections to hosts
» Version all unversioned files in an SVN checkout
» Print first line of every paragraph


Latest tips by RSS
Click here to subscribe
Follow Shell-Fu on Twitter
Click here to follow
Follow Shell-Fu on identi.ca
Click here to follow


Add your comment

Comments are currently disabled
for people living in the eu danmark is closer, though it's a windoof server you're connecting to:

w3m -dump http://msv.dk/ms302.aspx | head -n +2 | cut -c 17-

Posted 2008-10-07 17:31:01
George Zankevich
This doesn't work for me as the IP is being rendered on the line after the regex.

Your IP Address Is

My regex skill is a little rough but this works:

lynx -dump http://whatismyip.com | awk '/[0-2][0-5][0-5]\./ {print $1}'
Posted 2009-02-07 13:55:31
myIP=`wget -qO - http://ekiga.net/ip/` && echo $myIP
Posted 2009-02-28 13:31:05
Just tried this tip, and found that whatismyip.com has a new, easier to use page...  Now all it takes is:

lynx -dump http://whatismyip.com/automati … 230945.asp
Posted 2009-05-12 14:41:03

Home Latest Browse Top 25 Random Hall Of Fame Contact Submit