I’ll keep this snippet really short:
[text]
$ ifconfig eth0 | grep "inet addr:" | cut -d: -f2 | awk ‘{ print $1 }’
[/text]
Which results in:
[text]
10.X.X.X
[/text]
I’ll keep this snippet really short:
[text]
$ ifconfig eth0 | grep "inet addr:" | cut -d: -f2 | awk ‘{ print $1 }’
[/text]
Which results in:
[text]
10.X.X.X
[/text]