I got fed up of finding my IP address in the big pile of text that ifconfig outputs on OS X (I do this quite a lot as I deal with interactions between multiple VMs) so I wrote a script to do it for me.