add extract function in bashrc