View Single Post
Posts: 1,224 | Thanked: 1,763 times | Joined on Jul 2007
#6
I guess the easiest way is to parse some page like http://whatsmyip.net/ :

wget -O - -o /dev/null http://whatsmyip.net | grep empty_area | cut -d'>' -f 2 | cut -d'<' -f 1

works, but those sites tend to change their format frequently, so this will stop working some time in the future.