# get IP address of eth0 network interface ifconfig eth0 | awk '/inet addr/ {split ($2,A,":"); print A[2]}'
source
Doesn’t work with french distributions. Correction : ifconfig eth0 | awk ‘/inet adr/ {split ($2,A,”:”); print A[2]}’
‘addr’ => ‘adr’
Ok, but who on earth uses french locales?
Et bien moi of course ^^
Name
Mail (will not be published)
Website
Doesn’t work with french distributions.
Correction : ifconfig eth0 | awk ‘/inet adr/ {split ($2,A,”:”); print A[2]}’
‘addr’ => ‘adr’
Ok, but who on earth uses french locales?
Et bien moi
of course ^^