List IP addresses
Hi,
I'm looking for a command/syntax that lists IP address for me. I'm familiar with ifconfig but the info provided is overly verbose for my requirements. I just want to list IP's only, clean and simple. Thx |
How about something like:
Code:
/sbin/ifconfig -a | grep 'inet addr' | awk '{print $2}' | cut -d: -f 2 |
You ripper! :)
|
All times are GMT -5. The time now is 09:30 PM. |