Return to Snippet

Revision: 6215
at May 8, 2008 20:41 by Juanje


Initial Code
# get IP address of eth0 network interface
ifconfig eth0 | awk '/inet addr/ {split ($2,A,":"); print A[2]}'

Initial URL


Initial Description


Initial Title
Get (just) the IP address in Linux

Initial Tags


Initial Language
Bash