As long as whatismyip.com prints out your IP-Address in the HTML page title, you can use this:

Create shell script:
Code:
cd ~
mkdir bin
nano  bin/whatismyip.sh
Insert this into nano:
Code:
#!/bin/bash

echo Your external IP Address is:
wget http://Www.whatismyip.com -O - -o /dev/null | grep '<TITLE>' | sed -r 's/<TITLE>WhatIsMyIP\.com \- //g' | sed -r 's/<\/TITLE>//g'

exit 0
Press Ctrl + O, Enter, Ctrl + X, then run:
Code:
chmod u+x bin/whatismyip.sh
Now you can check your external IP Address by running:
Code:
~/bin/whatismyip.sh