Some days ago I made a little tool to get local and external IPs of your machine, but it was only for windows. I wanted something like that for my Linux as well, so I made this little bash script.
Put it into /bin/ folder, do chmod a+x termip and execute from anywhere with command: termip
Script can always be found here: http://9v.lt/projects/other/termip