Task: Get Primary IP Address of Local Machine
Task: Get Primary IP Address of Local Machine: a task in Terminal-Lego-15k (Harbor dataset). Create a shell script that retrieves the primary (first) IP address of the local machine, excluding the loopback address (127.0.0.1). The solution should be cross-platform compatible, working on both Linux…
The task
Create a shell script that retrieves the primary (first) IP address of the local machine, excluding the loopback address (127.0.0.1). The solution should be cross-platform compatible, working on both Linux (Debian/RedHat) and macOS systems.
Part of PrimeIntellect/Terminal-Lego-15k.