Getting your IP address

1 · Valentin Knabel · Feb. 14, 2022, 8:53 p.m.
Sometimes you need your local IP address on the command line to automatically pass it to a script. ifconfig en0 |awk '/inet / {print $2; }'...