I want to edit the bashrc file to have a simple function called \"myip\" to run. As you might guess, the function myip prints only my internal IP address of my machine.
After troubles with greping ifconfig I found a wrapper library to simplify my life
ifconfig
pip install my_ip mip