Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '2 cents re: getting the IP from the HTML' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
2 cents re: getting the IP from the HTML
Authored by: gblanco on Nov 04, '04 12:31:48AM

Oops! That only works if your IP address is exactly 11 characters....

Try:

curl -f http://checkip.dyndns.org | sed ' s.[A-Za-z<>/: ]..g '

:)



[ Reply to This | # ]
2 cents re: getting the IP from the HTML
Authored by: gblanco on Nov 04, '04 12:37:33AM

... sorry, can't resist these little games....

curl -f http://checkip.dyndns.org | sed 's/[^0-9.]//g'

... is even shorter.



[ Reply to This | # ]
2 cents re: getting the IP from the HTML
Authored by: zendrew on Nov 04, '04 12:39:45AM

sweet.



[ Reply to This | # ]