/ Published in: Bash
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
ifconfig eth0 | grep "inet " | awk '{print $2}' | awk -F : '{print $2}'