I\'m trying to use just the IP address (inet) as a parameter in a script I wrote.
Is there an easy way in a unix terminal to get just the IP address, rather than loo
If you don't want to use ifconfig nor regex...
ifconfig
ip addr | grep eth0 | grep inet | awk '{print $2}' | cut -d"/" -f1