If you ever needed to get your own IP from shell to use in scripts…
host $(who -m | awk '{ print $5 }' | sed 's/[()]//g') | awk '{ print $4 }'
Above code is used in a script which updates apache ACL’s with current IP… makes it much easier than manually editing.