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.
Use:
ifconfig enops3 | greb broadcast | cut -d " " -f10
Where enops3 is the interface name.
enops3