/ Published in: Bash
Expand |
Embed | Plain Text
# get IP address of eth0 network interface ifconfig eth0 | awk '/inet addr/ {split ($2,A,":"); print A[2]}'
You need to login to post a comment.
Juanje on 05/08/08
1 person have marked this snippet as a favorite
# get IP address of eth0 network interface ifconfig eth0 | awk '/inet addr/ {split ($2,A,":"); print A[2]}'
You need to login to post a comment.