/ Published in: Bash
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
# get IP address of eth0 network interface ifconfig eth0 | awk '/inet addr/ {split ($2,A,":"); print A[2]}'