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.
ifconfig eth0 | awk '/inet addr/{sub("addr:",""); print $2}'