Added an extract function which can be used in .bashrc
credits go to Mendel Cooper and his example in the Advanced Bash-Scripting Guide
http://tldp.org/LDP/abs/html/sample-bashrc.html
Merge pull request #6 from deepstop/master

Added an extract function which can be used in .bashrc