Getting your IP address

Posted on Feb 14, 2022

Sometimes you need your local IP address on the command line to automatically pass it to a script.

ifconfig en0 |awk '/inet / {print $2; }'