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.
This works for me: ifconfig eth0 | awk '/inet addr/{print substr($2,6)}'
ifconfig eth0 | awk '/inet addr/{print substr($2,6)}'