I'm running Leopard on a MacBook Pro.
Is there a short command that I can run from within the Terminal that will return the current IP address?
I know that I can run ifconfig and then pipe the results through an appropriate grep, but I'm wondering if there's also a more direct command that I can invoke from the terminal that will give me the IP address on stdout.
Thanks in advance.
Is there a short command that I can run from within the Terminal that will return the current IP address?
I know that I can run ifconfig and then pipe the results through an appropriate grep, but I'm wondering if there's also a more direct command that I can invoke from the terminal that will give me the IP address on stdout.
Thanks in advance.
.